File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ const npmPackages = getNpmPackagesFromRunfiles();
13
13
// Path to the node modules of the workspace.
14
14
const nodeModulesDir = runfiles . resolve ( 'npm/node_modules' ) ;
15
15
// Path to the generated file that imports all entry-points.
16
- const testFilePath = require . resolve ( './import-all-entry-points.ts' ) ;
16
+ const testFilePath = runfiles . resolveWorkspaceRelative (
17
+ 'integration/ts-compat/import-all-entry-points.ts' ) ;
17
18
18
19
/**
19
20
* Runs the TypeScript compatibility test with the specified tsc binary. The
@@ -36,6 +37,9 @@ exports.runTypeScriptCompatibilityTest = async (tscBinPath) => {
36
37
37
38
const tscArgs = [
38
39
'--strict' ,
40
+ // Disables automatic type resolution. In non-sandbox environments, the node modules
41
+ // are accessible and types could end up as part of the program.
42
+ '--types' ,
39
43
'--lib' , 'es2015,dom' ,
40
44
// Ensures that `node_modules` can be resolved. By default, in sandbox environments the
41
45
// node modules cannot be resolved because they are wrapped in the `npm/node_modules` folder
You can’t perform that action at this time.
0 commit comments