Skip to content

Commit

Permalink
edits to test
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewriteswrongs committed Jul 20, 2022
1 parent 3d86f26 commit baa8a0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/testing/jest/test/jest-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ describe('jest-config', () => {
expect(jestArgv.maxWorkers).toBe(2);
});

it('should pass --outputFile=path/to/file', () => {
it('marks outputFile as a Jest argument', () => {
const args = ['test', '--ci', '--outputFile=path/to/my-file'];
const config = mockValidatedConfig();
config.testing = {};
config.flags = parseFlags(args, config.sys);
expect(config.flags.args).toEqual(['--ci', '--outputFile=path/to/my-file']);
expect(config.flags.unknownArgs).toEqual([]);
config.testing = {};
const jestArgv = buildJestArgv(config);
expect(jestArgv.outputFile).toBe('path/to/my-file');
});
Expand Down

0 comments on commit baa8a0f

Please sign in to comment.