We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72896ad commit 1ea5d92Copy full SHA for 1ea5d92
1 file changed
test/tools/runner/vm_runner.ts
@@ -120,7 +120,7 @@ function loadInSandbox(filepath: string) {
120
}
121
122
// js-bson is allowed to use Buffer, only ./src/ is not
123
- const isSourceFile = realPath.includes('/src/') || !realPath.includes('node_modules');
+ const isSourceFile = realPath.includes('/src/') && !realPath.includes('node_modules');
124
const isTestFile = realPath.includes('.test.ts') || realPath.includes('.test.js');
125
126
let localBuffer = Buffer;
0 commit comments