Skip to content

Commit da7d505

Browse files
committed
bah
1 parent 832523f commit da7d505

File tree

1 file changed

+2
-2
lines changed
  • packages/jest-environment-node/src

1 file changed

+2
-2
lines changed

packages/jest-environment-node/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ export default class NodeEnvironment implements JestEnvironment<Timer> {
155155
if ('asyncDispose' in Symbol && !('asyncDispose' in global.Symbol)) {
156156
const globalSymbol = global.Symbol as unknown as SymbolConstructor;
157157
// @ts-expect-error - it's readonly - but we have checked above that it's not there
158-
globalSymbol.asyncDispose = globalSymbol('nodejs.asyncDispose');
158+
globalSymbol.asyncDispose = globalSymbol.for('nodejs.asyncDispose');
159159
// @ts-expect-error - it's readonly - but we have checked above that it's not there
160-
globalSymbol.dispose = globalSymbol('nodejs.dispose');
160+
globalSymbol.dispose = globalSymbol.for('nodejs.dispose');
161161
}
162162

163163
// Node's error-message stack size is limited at 10, but it's pretty useful

0 commit comments

Comments
 (0)