File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/jest-environment-node/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments