You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@
5
5
### Fixes
6
6
7
7
-`[jest-runtime]` Fix regression when using `jest.isolateModules` and mocks ([#11882](https://github.com/facebook/jest/pull/11882))
8
+
-`[jest-runtime]` Include test name when importing modules after test has completed ([#11885](https://github.com/facebook/jest/pull/11885))
9
+
-`[jest-runtime]` Error when ESM import is used after test is torn down ([#11885](https://github.com/facebook/jest/pull/11885))
Copy file name to clipboardExpand all lines: e2e/__tests__/__snapshots__/environmentAfterTeardown.test.ts.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports[`prints useful error for environment methods after test is done 1`] =`
4
-
ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down.
4
+
ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From __tests__/afterTeardown.test.js.
5
5
6
6
9 | test('access environment methods after done', () => {
Copy file name to clipboardExpand all lines: e2e/__tests__/environmentAfterTeardown.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,6 @@ test('prints useful error for environment methods after test is done', () => {
14
14
15
15
expect(wrap(interestingLines)).toMatchSnapshot();
16
16
expect(stderr.split('\n')[9]).toBe(
17
-
'ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down.',
17
+
'ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From __tests__/afterTeardown.test.js.',
0 commit comments