Skip to content

Commit

Permalink
fix snapshot to be stable
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jul 17, 2019
1 parent c2bc3b8 commit 684ebcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions e2e/__tests__/__snapshots__/requireMissingExt.test.ts.snap
Expand Up @@ -24,11 +24,4 @@ FAIL ./test.js
at Resolver.resolveModule (../../packages/jest-resolve/build/index.js:259:17)
at Object.<anonymous> (node_modules/discord.js/src/index.js:21:12)
at Object.require (test.js:10:1)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.543s
Ran all test suites.
`;
5 changes: 3 additions & 2 deletions e2e/__tests__/requireMissingExt.test.ts
Expand Up @@ -7,7 +7,7 @@

import path from 'path';
import wrap from 'jest-snapshot-serializer-raw';
import {run} from '../Utils';
import {extractSummary, run} from '../Utils';
import runJest from '../runJest';

const dir = path.resolve(__dirname, '../require-missing-ext');
Expand All @@ -18,6 +18,7 @@ beforeEach(() => {

test('shows a proper error from deep requires', () => {
const {stderr} = runJest(dir);
const {rest} = extractSummary(stderr);

expect(wrap(stderr)).toMatchSnapshot();
expect(wrap(rest)).toMatchSnapshot();
});

0 comments on commit 684ebcb

Please sign in to comment.