Skip to content

Commit 11f1edb

Browse files
committed
remove word
1 parent 273f4e7 commit 11f1edb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
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. From test __tests__/afterTeardown.test.js.
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.
55
66
9 | test('access environment methods after done', () => {
77
10 | setTimeout(() => {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`prints useful error for requires after test is done 1`] = `
4-
ReferenceError: You are trying to \`import\` a file after the Jest environment has been torn down.
4+
ReferenceError: You are trying to \`import\` a file after the Jest environment has been torn down. From __tests__/lateRequire.test.js.
55
66
9 | test('require after done', () => {
77
10 | setTimeout(() => {

e2e/__tests__/environmentAfterTeardown.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ test('prints useful error for environment methods after test is done', () => {
1414

1515
expect(wrap(interestingLines)).toMatchSnapshot();
1616
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. From test __tests__/afterTeardown.test.js.',
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.',
1818
);
1919
});

packages/jest-runtime/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2004,7 +2004,7 @@ export default class Runtime {
20042004

20052005
private _logFormattedReferenceError(errorMessage: string) {
20062006
const testPath = this._testPath
2007-
? ` From test ${path.relative(this._config.rootDir, this._testPath)}.`
2007+
? ` From ${path.relative(this._config.rootDir, this._testPath)}.`
20082008
: '';
20092009
const originalStack = new ReferenceError(`${errorMessage}${testPath}`)
20102010
.stack!.split('\n')

0 commit comments

Comments
 (0)