Skip to content

Commit

Permalink
update cli tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Walker-GM committed Sep 24, 2024
1 parent cf79734 commit a3d6150
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/cli/src/commands/__tests__/dev.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ describe('yarn rw dev', () => {
// test environments (vite sets this in their vite-ecosystem-ci tests)
.replace(/--max-old-space-size=\d+\s/, ''),
).toEqual(
'yarn cross-env NODE_ENV=development NODE_OPTIONS="--enable-source-maps" yarn nodemon --quiet --watch "/mocked/project/redwood.toml" --exec "yarn rw-api-server-watch --port 8911 --debug-port 18911 | rw-log-formatter"',
'yarn nodemon --quiet --watch "/mocked/project/redwood.toml" --exec "yarn rw-api-server-watch --port 8911 --debug-port 18911 | rw-log-formatter"',
)
expect(apiCommand.env.NODE_ENV).toEqual('development')
expect(apiCommand.env.NODE_OPTIONS).toContain('--enable-source-maps')

expect(generateCommand.command).toEqual('yarn rw-gen-watch')
})
Expand Down Expand Up @@ -166,8 +168,10 @@ describe('yarn rw dev', () => {
// test environments (vite sets this in their vite-ecosystem-ci tests)
.replace(/--max-old-space-size=\d+\s/, ''),
).toEqual(
'yarn cross-env NODE_ENV=development NODE_OPTIONS="--enable-source-maps" yarn nodemon --quiet --watch "/mocked/project/redwood.toml" --exec "yarn rw-api-server-watch --port 8911 --debug-port 18911 | rw-log-formatter"',
'yarn nodemon --quiet --watch "/mocked/project/redwood.toml" --exec "yarn rw-api-server-watch --port 8911 --debug-port 18911 | rw-log-formatter"',
)
expect(apiCommand.env.NODE_ENV).toEqual('development')
expect(apiCommand.env.NODE_OPTIONS).toContain('--enable-source-maps')

expect(generateCommand.command).toEqual('yarn rw-gen-watch')
})
Expand Down

0 comments on commit a3d6150

Please sign in to comment.