diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-09 17:35:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 21:35:41 +0000 |
commit | 560ad0331bf99a2564f53201cd086ff902901bfe (patch) | |
tree | aa7b250366c62e7552793d954fabbfe6b47b80f4 /tests/testdata | |
parent | aadcf3346c25ed9d880c2bfc43b62aa075ea6126 (diff) |
fix(node/byonm): do not accidentally resolve bare node built-ins (#25543)
This was accidentally enabled in byonm, but it requires the
`--unstable-bare-node-builtins` flag.
Closes #25358
Diffstat (limited to 'tests/testdata')
9 files changed, 0 insertions, 26 deletions
diff --git a/tests/testdata/run/node_builtin_modules/mod.js b/tests/testdata/run/node_builtin_modules/mod.js deleted file mode 100644 index a01ac4422..000000000 --- a/tests/testdata/run/node_builtin_modules/mod.js +++ /dev/null @@ -1,5 +0,0 @@ -import { createRequire } from "node:module"; -console.log(createRequire); -import process from "node:process"; -console.log(process.version); -console.log(process.argv); diff --git a/tests/testdata/run/node_builtin_modules/mod.js.out b/tests/testdata/run/node_builtin_modules/mod.js.out deleted file mode 100644 index 844e3d927..000000000 --- a/tests/testdata/run/node_builtin_modules/mod.js.out +++ /dev/null @@ -1,3 +0,0 @@ -[Function: createRequire] -v[WILDCARD].[WILDCARD].[WILDCARD] -[ [Getter], [Getter], "hello", "there" ] diff --git a/tests/testdata/run/node_builtin_modules/mod.ts b/tests/testdata/run/node_builtin_modules/mod.ts deleted file mode 100644 index a01ac4422..000000000 --- a/tests/testdata/run/node_builtin_modules/mod.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { createRequire } from "node:module"; -console.log(createRequire); -import process from "node:process"; -console.log(process.version); -console.log(process.argv); diff --git a/tests/testdata/run/node_builtin_modules/mod.ts.out b/tests/testdata/run/node_builtin_modules/mod.ts.out deleted file mode 100644 index 844e3d927..000000000 --- a/tests/testdata/run/node_builtin_modules/mod.ts.out +++ /dev/null @@ -1,3 +0,0 @@ -[Function: createRequire] -v[WILDCARD].[WILDCARD].[WILDCARD] -[ [Getter], [Getter], "hello", "there" ] diff --git a/tests/testdata/run/node_prefix_missing/config.json b/tests/testdata/run/node_prefix_missing/config.json deleted file mode 100644 index 67480c3d4..000000000 --- a/tests/testdata/run/node_prefix_missing/config.json +++ /dev/null @@ -1 +0,0 @@ -{ "unstable": ["bare-node-builtins"] } diff --git a/tests/testdata/run/node_prefix_missing/feature_enabled.out b/tests/testdata/run/node_prefix_missing/feature_enabled.out deleted file mode 100644 index c577fa92c..000000000 --- a/tests/testdata/run/node_prefix_missing/feature_enabled.out +++ /dev/null @@ -1,2 +0,0 @@ -[WILDCARD]Warning Resolving "fs" as "node:fs" at file:///[WILDCARD]/tests/testdata/run/node_prefix_missing/main.ts:1:16. If you want to use a built-in Node module, add a "node:" prefix. -[Function: writeFile] diff --git a/tests/testdata/run/node_prefix_missing/import_map.json b/tests/testdata/run/node_prefix_missing/import_map.json deleted file mode 100644 index 3add7d009..000000000 --- a/tests/testdata/run/node_prefix_missing/import_map.json +++ /dev/null @@ -1 +0,0 @@ -{ "imports": {} } diff --git a/tests/testdata/run/node_prefix_missing/main.ts b/tests/testdata/run/node_prefix_missing/main.ts deleted file mode 100644 index c5c1885a2..000000000 --- a/tests/testdata/run/node_prefix_missing/main.ts +++ /dev/null @@ -1,3 +0,0 @@ -import fs from "fs"; - -console.log(fs.writeFile); diff --git a/tests/testdata/run/node_prefix_missing/main.ts.out b/tests/testdata/run/node_prefix_missing/main.ts.out deleted file mode 100644 index 48b4e37e2..000000000 --- a/tests/testdata/run/node_prefix_missing/main.ts.out +++ /dev/null @@ -1,3 +0,0 @@ -error: Relative import path "fs" not prefixed with / or ./ or ../ - hint: If you want to use a built-in Node module, add a "node:" prefix (ex. "node:fs"). - at file:///[WILDCARD]/main.ts:1:16 |