Skip to content

Commit

Permalink
chore: update snapshots to remove trailing newline
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Aug 20, 2019
1 parent 0747fd5 commit 6eeff97
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
4 changes: 0 additions & 4 deletions e2e/__tests__/__snapshots__/coverageThreshold.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ All files | 50 | 100 | 50 | 50 | |
apple.js | 0 | 100 | 0 | 0 | 2,3 |
banana.js | 100 | 100 | 100 | 100 | |
-----------|----------|----------|----------|----------|-------------------|
`;
exports[`exits with 0 if global threshold group is not found in coverage data: stdout 1`] = `
Expand Down Expand Up @@ -57,7 +56,6 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
All files | 50 | 100 | 0 | 50 | |
not-covered.js | 50 | 100 | 0 | 50 | 3 |
----------------|----------|----------|----------|----------|-------------------|
`;
exports[`exits with 1 if path threshold group is not found in coverage data 1`] = `
Expand All @@ -82,7 +80,6 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
All files | 100 | 100 | 100 | 100 | |
banana.js | 100 | 100 | 100 | 100 | |
-----------|----------|----------|----------|----------|-------------------|
`;
exports[`file is matched by all path and glob threshold groups 1`] = `
Expand All @@ -109,5 +106,4 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
All files | 50 | 100 | 0 | 50 | |
banana.js | 50 | 100 | 0 | 50 | 3 |
-----------|----------|----------|----------|----------|-------------------|
`;
1 change: 0 additions & 1 deletion e2e/__tests__/__snapshots__/customReporters.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ exports[`Custom Reporters Integration invalid format for adding reporters 1`] =
Configuration Documentation:
https://jestjs.io/docs/configuration.html
`;
exports[`Custom Reporters Integration valid array format for adding reporters 1`] = `
Expand Down
1 change: 0 additions & 1 deletion e2e/__tests__/__snapshots__/processExit.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ exports[`prints stack trace pointing to process.exit call 1`] = `
11 | expect(true).toBe(true);
at Object.exit (__tests__/test.js:8:9)
`;
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ exports[`show error message when no js moduleFileExtensions 1`] = `
Configuration Documentation:
https://jestjs.io/docs/configuration.html
`;

exports[`show error message with matching files 1`] = `
Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/processExit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import {wrap} from 'jest-snapshot-serializer-raw';
import runJest from '../runJest';

it('prints stack trace pointing to process.exit call', async () => {
const {stderr} = await runJest('process-exit');
it('prints stack trace pointing to process.exit call', () => {
const {stderr} = runJest('process-exit');

expect(wrap(stderr)).toMatchSnapshot();
});
13 changes: 6 additions & 7 deletions e2e/__tests__/supportsDashedArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,14 @@ test('throws error for unknown dashed & camelcase args', () => {
'--useStderr',
]);
expect(result.stderr).toMatchInlineSnapshot(`
● Unrecognized CLI Parameters:
● Unrecognized CLI Parameters:
Following options were not recognized:
["doesNotExist", "also-does-not-exist"]
Following options were not recognized:
["doesNotExist", "also-does-not-exist"]
CLI Options Documentation:
https://jestjs.io/docs/en/cli.html
CLI Options Documentation:
https://jestjs.io/docs/en/cli.html
`);
`);
expect(result.status).toBe(1);
});

0 comments on commit 6eeff97

Please sign in to comment.