Skip to content

Commit

Permalink
Update broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyi45 committed Oct 28, 2023
1 parent ed5877f commit df1fa9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: yarn test --color

- name: Test and lint scripts
run: yarn scripts:tsc && yarn scripts:lint && yarn scripts:test
run: yarn scripts:tsc && yarn scripts:lint && yarn scripts:test --color

- name: Check and Lint Devserver
run: yarn devserver:tsc && yarn devserver:lint
Expand Down
2 changes: 1 addition & 1 deletion scripts/src/testing/__tests__/runner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const runCommand = (...args: string[]) => getTestCommand().parseAsync(args, { fr
const mockRunJest = runner.runJest as MockedFunction<typeof runner.runJest>

test('Check that the test command properly passes options to jest', async () => {
await runCommand('-u', '-w', '--srcDir gg', './src/folder')
await runCommand('-u', '-w', '--srcDir', 'gg', './src/folder')

const [call] = mockRunJest.mock.calls
expect(call[0]).toEqual(['-u', '-w', './src/folder'])
Expand Down

0 comments on commit df1fa9d

Please sign in to comment.