We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 343829f commit 242ce0eCopy full SHA for 242ce0e
packages/app/src/sandbox/eval/transpiled-module.js
@@ -853,10 +853,7 @@ export default class TranspiledModule {
853
return foundModule.path;
854
};
855
856
- let globals = {};
857
- if (this.isTestFile) {
858
- globals = manager.testRunner.testGlobals(this.module);
859
- }
+ const globals = manager.testRunner.testGlobals(this.module);
860
861
globals.__dirname = pathUtils.dirname(this.module.path);
862
globals.__filename = this.module.path;
0 commit comments