Skip to content

Commit 562ae92

Browse files
committed
snaps
1 parent a5cca94 commit 562ae92

File tree

7 files changed

+17
-11
lines changed

7 files changed

+17
-11
lines changed

e2e/__tests__/__snapshots__/circusDeclarationErrors.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
1616
14 | });
1717
15 | });
1818
19-
at eventHandler (../../packages/jest-circus/build/eventHandler.js:134:11)
19+
at c (../../packages/jest-circus/build/jestAdapterInit.js:8:2312)
2020
at test (__tests__/asyncDefinition.test.js:12:5)
2121
2222
● Test suite failed to run
@@ -31,7 +31,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
3131
15 | });
3232
16 |
3333
34-
at eventHandler (../../packages/jest-circus/build/eventHandler.js:97:11)
34+
at c (../../packages/jest-circus/build/jestAdapterInit.js:8:1801)
3535
at afterAll (__tests__/asyncDefinition.test.js:13:5)
3636
3737
● Test suite failed to run
@@ -46,7 +46,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
4646
20 | });
4747
21 |
4848
49-
at eventHandler (../../packages/jest-circus/build/eventHandler.js:134:11)
49+
at c (../../packages/jest-circus/build/jestAdapterInit.js:8:2312)
5050
at test (__tests__/asyncDefinition.test.js:18:3)
5151
5252
● Test suite failed to run
@@ -60,6 +60,6 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
6060
20 | });
6161
21 |
6262
63-
at eventHandler (../../packages/jest-circus/build/eventHandler.js:97:11)
63+
at c (../../packages/jest-circus/build/jestAdapterInit.js:8:1801)
6464
at afterAll (__tests__/asyncDefinition.test.js:19:3)"
6565
`;

e2e/__tests__/__snapshots__/moduleNameMapper.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ exports[`moduleNameMapper wrong array configuration 1`] = `
4141
12 | module.exports = () => 'test';
4242
13 |
4343
44-
at createNoMappedModuleFoundError (../../packages/jest-resolve/build/resolver.js:759:17)
44+
at P (../../packages/jest-resolve/build/index.js:8:18443)
4545
at Object.require (index.js:10:1)
4646
at Object.require (__tests__/index.js:10:20)"
4747
`;
@@ -71,7 +71,7 @@ exports[`moduleNameMapper wrong configuration 1`] = `
7171
12 | module.exports = () => 'test';
7272
13 |
7373
74-
at createNoMappedModuleFoundError (../../packages/jest-resolve/build/resolver.js:759:17)
74+
at P (../../packages/jest-resolve/build/index.js:8:18443)
7575
at Object.require (index.js:10:1)
7676
at Object.require (__tests__/index.js:10:20)"
7777
`;

e2e/__tests__/__snapshots__/requireMissingExt.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exports[`shows a proper error from deep requires 1`] = `
2626
12 | test('dummy', () => {
2727
13 | expect(1).toBe(1);
2828
29-
at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/resolver.js:427:11)
29+
at _throwModNotFoundError (../../packages/jest-resolve/build/index.js:8:14171)
3030
at Object.<anonymous> (node_modules/discord.js/src/index.js:21:12)
3131
at Object.require (__tests__/test.js:10:1)"
3232
`;

e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exports[`show error message with matching files 1`] = `
3737
| ^
3838
9 |
3939
40-
at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/resolver.js:427:11)
40+
at _throwModNotFoundError (../../packages/jest-resolve/build/index.js:8:14171)
4141
at Object.require (index.js:8:18)
4242
at Object.require (__tests__/test.js:8:11)"
4343
`;

e2e/__tests__/__snapshots__/showConfig.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ exports[`--showConfig outputs config info and exits 1`] = `
7474
"/node_modules/"
7575
],
7676
"testRegex": [],
77-
"testRunner": "<<REPLACED_JEST_PACKAGES_DIR>>/jest-circus/runner.js",
77+
"testRunner": "<<REPLACED_JEST_PACKAGES_DIR>>/jest-circus/build/runner.js",
7878
"transform": [
7979
[
8080
"\\\\.[jt]sx?$",

e2e/__tests__/stackTrace.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('Stack Trace', () => {
8181
);
8282

8383
expect(stderr).toMatch(
84-
/\s+at\s(?:.+?)\s\((?:.+?)jest-resolve\/build\/resolver\.js/,
84+
/\s+at\s(?:.+?)\s\((?:.+?)jest-resolve\/build\/index\.js/,
8585
);
8686
});
8787

packages/jest-core/src/__tests__/watch.test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ describe('Watch mode flows', () => {
111111

112112
beforeEach(() => {
113113
isInteractive = true;
114-
jest.doMock('jest-util/build/isInteractive', () => isInteractive);
114+
jest.doMock('jest-util', () => {
115+
const original = jest.requireActual('jest-util');
116+
return {
117+
...original,
118+
isInteractive: () => isInteractive,
119+
};
120+
});
115121
watch = require('../watch').default;
116122
const config = {
117123
rootDir: __dirname,

0 commit comments

Comments
 (0)