jest-environment-node
Advanced tools
Comparing version 27.0.0-next.3 to 27.0.0-next.4
@@ -8,3 +8,3 @@ /** | ||
/// <reference types="node" /> | ||
import { Context, Script } from 'vm'; | ||
import { Context } from 'vm'; | ||
import type { JestEnvironment } from '@jest/environment'; | ||
@@ -28,5 +28,4 @@ import { LegacyFakeTimers, ModernFakeTimers } from '@jest/fake-timers'; | ||
teardown(): Promise<void>; | ||
runScript<T = unknown>(script: Script): T | null; | ||
getVmContext(): Context | null; | ||
} | ||
export = NodeEnvironment; |
@@ -149,11 +149,2 @@ 'use strict'; | ||
this.fakeTimersModern = null; | ||
} // TS infers the return type to be `any`, since that's what `runInContext` | ||
// returns. | ||
runScript(script) { | ||
if (this.context) { | ||
return script.runInContext(this.context); | ||
} | ||
return null; | ||
} | ||
@@ -160,0 +151,0 @@ |
{ | ||
"name": "jest-environment-node", | ||
"version": "27.0.0-next.3", | ||
"version": "27.0.0-next.4", | ||
"repository": { | ||
@@ -17,3 +17,3 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/environment": "^27.0.0-next.3", | ||
"@jest/environment": "^27.0.0-next.4", | ||
"@jest/fake-timers": "^27.0.0-next.3", | ||
@@ -34,3 +34,3 @@ "@jest/types": "^27.0.0-next.3", | ||
}, | ||
"gitHead": "2e34f2cfaf9b6864c3ad4bdca05d3097d3108a41" | ||
"gitHead": "941c414f0b757fdc619778c46c21fda26b3e5504" | ||
} |
6361
150