Skip to content

Commit 242ce0e

Browse files
committed
Fix test globals
1 parent 343829f commit 242ce0e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/app/src/sandbox/eval/transpiled-module.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -853,10 +853,7 @@ export default class TranspiledModule {
853853
return foundModule.path;
854854
};
855855

856-
let globals = {};
857-
if (this.isTestFile) {
858-
globals = manager.testRunner.testGlobals(this.module);
859-
}
856+
const globals = manager.testRunner.testGlobals(this.module);
860857

861858
globals.__dirname = pathUtils.dirname(this.module.path);
862859
globals.__filename = this.module.path;

0 commit comments

Comments
 (0)