summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/compile
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/compile')
-rw-r--r--cli/tests/testdata/compile/args.ts3
-rw-r--r--cli/tests/testdata/compile/check_local_by_default.ts3
-rw-r--r--cli/tests/testdata/compile/check_local_by_default2.ts6
-rw-r--r--cli/tests/testdata/compile/dynamic_imports/import1.ts3
-rw-r--r--cli/tests/testdata/compile/dynamic_imports/import2.ts1
-rw-r--r--cli/tests/testdata/compile/dynamic_imports/import_path1
-rw-r--r--cli/tests/testdata/compile/dynamic_imports/main.out5
-rw-r--r--cli/tests/testdata/compile/dynamic_imports/main.ts6
-rw-r--r--cli/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts18
-rw-r--r--cli/tests/testdata/compile/dynamic_imports_tmp_lit/main.info.out10
-rw-r--r--cli/tests/testdata/compile/dynamic_imports_tmp_lit/main.js14
-rw-r--r--cli/tests/testdata/compile/dynamic_imports_tmp_lit/other/data.json3
-rw-r--r--cli/tests/testdata/compile/dynamic_imports_tmp_lit/other/sub/data2.json3
-rw-r--r--cli/tests/testdata/compile/dynamic_imports_tmp_lit/sub/a.js1
-rw-r--r--cli/tests/testdata/compile/dynamic_imports_tmp_lit/sub/b.ts1
-rw-r--r--cli/tests/testdata/compile/node_modules_symlink_outside/main.out2
-rw-r--r--cli/tests/testdata/compile/node_modules_symlink_outside/main.ts6
-rw-r--r--cli/tests/testdata/compile/node_modules_symlink_outside/main_compile_file.out2
-rw-r--r--cli/tests/testdata/compile/node_modules_symlink_outside/main_compile_folder.out6
-rw-r--r--cli/tests/testdata/compile/npm_fs/main.out1
-rw-r--r--cli/tests/testdata/compile/npm_fs/main.ts259
-rw-r--r--cli/tests/testdata/compile/standalone_error.ts9
-rw-r--r--cli/tests/testdata/compile/standalone_error_module_with_imports_1.ts1
-rw-r--r--cli/tests/testdata/compile/standalone_error_module_with_imports_2.ts2
-rw-r--r--cli/tests/testdata/compile/standalone_follow_redirects.ts2
-rw-r--r--cli/tests/testdata/compile/standalone_follow_redirects_2.js5
-rw-r--r--cli/tests/testdata/compile/standalone_import_datauri.ts4
-rw-r--r--cli/tests/testdata/compile/standalone_import_map.json5
-rw-r--r--cli/tests/testdata/compile/standalone_import_map.ts1
-rw-r--r--cli/tests/testdata/compile/standalone_import_map_config.json3
-rw-r--r--cli/tests/testdata/compile/standalone_runtime_flags.ts3
-rw-r--r--cli/tests/testdata/compile/unstable_features.ts2
-rw-r--r--cli/tests/testdata/compile/vfs_implicit_read_permission/main.out8
-rw-r--r--cli/tests/testdata/compile/vfs_implicit_read_permission/main.ts3
-rw-r--r--cli/tests/testdata/compile/workers/basic.out5
-rw-r--r--cli/tests/testdata/compile/workers/basic.ts11
-rw-r--r--cli/tests/testdata/compile/workers/not_in_module_map.ts11
-rw-r--r--cli/tests/testdata/compile/workers/worker.ts14
38 files changed, 0 insertions, 443 deletions
diff --git a/cli/tests/testdata/compile/args.ts b/cli/tests/testdata/compile/args.ts
deleted file mode 100644
index ec41d52f9..000000000
--- a/cli/tests/testdata/compile/args.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-Deno.args.forEach((arg) => {
- console.log(arg);
-});
diff --git a/cli/tests/testdata/compile/check_local_by_default.ts b/cli/tests/testdata/compile/check_local_by_default.ts
deleted file mode 100644
index 2ae8c2692..000000000
--- a/cli/tests/testdata/compile/check_local_by_default.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import * as a from "http://localhost:4545/subdir/type_error.ts";
-
-console.log(a.a);
diff --git a/cli/tests/testdata/compile/check_local_by_default2.ts b/cli/tests/testdata/compile/check_local_by_default2.ts
deleted file mode 100644
index 5177ff944..000000000
--- a/cli/tests/testdata/compile/check_local_by_default2.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import * as a from "http://localhost:4545/subdir/type_error.ts";
-
-const b: "b" = 12;
-
-console.log(a.a);
-console.log(b);
diff --git a/cli/tests/testdata/compile/dynamic_imports/import1.ts b/cli/tests/testdata/compile/dynamic_imports/import1.ts
deleted file mode 100644
index 2d9dde2a4..000000000
--- a/cli/tests/testdata/compile/dynamic_imports/import1.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import "./import2.ts";
-
-console.log("import1.ts");
diff --git a/cli/tests/testdata/compile/dynamic_imports/import2.ts b/cli/tests/testdata/compile/dynamic_imports/import2.ts
deleted file mode 100644
index 22321a5a7..000000000
--- a/cli/tests/testdata/compile/dynamic_imports/import2.ts
+++ /dev/null
@@ -1 +0,0 @@
-console.log("import2.ts");
diff --git a/cli/tests/testdata/compile/dynamic_imports/import_path b/cli/tests/testdata/compile/dynamic_imports/import_path
deleted file mode 100644
index 98222a208..000000000
--- a/cli/tests/testdata/compile/dynamic_imports/import_path
+++ /dev/null
@@ -1 +0,0 @@
-./import1.ts
diff --git a/cli/tests/testdata/compile/dynamic_imports/main.out b/cli/tests/testdata/compile/dynamic_imports/main.out
deleted file mode 100644
index 4304fb06f..000000000
--- a/cli/tests/testdata/compile/dynamic_imports/main.out
+++ /dev/null
@@ -1,5 +0,0 @@
-Starting the main module
-Dynamic importing
-import2.ts
-import1.ts
-Dynamic import done.
diff --git a/cli/tests/testdata/compile/dynamic_imports/main.ts b/cli/tests/testdata/compile/dynamic_imports/main.ts
deleted file mode 100644
index b889e2203..000000000
--- a/cli/tests/testdata/compile/dynamic_imports/main.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-console.log("Starting the main module");
-
-setTimeout(() => {
- console.log("Dynamic importing");
- import("./import1.ts").then(() => console.log("Dynamic import done."));
-}, 0);
diff --git a/cli/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts b/cli/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts
deleted file mode 100644
index ee8ff2c4b..000000000
--- a/cli/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { join } from "../../../../../test_util/std/path/mod.ts";
-
-console.log("Starting the main module");
-
-// We load the dynamic import path from the file system, to make sure any
-// improvements in static analysis can't defeat the purpose of this test, which
-// is to make sure the `--include` flag works to add non-analyzed imports to the
-// module graph.
-const IMPORT_PATH_FILE_PATH = join(
- Deno.cwd(),
- "tests/testdata/compile/dynamic_imports/import_path",
-);
-
-setTimeout(async () => {
- console.log("Dynamic importing");
- const importPath = (await Deno.readTextFile(IMPORT_PATH_FILE_PATH)).trim();
- import(importPath).then(() => console.log("Dynamic import done."));
-}, 0);
diff --git a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/main.info.out b/cli/tests/testdata/compile/dynamic_imports_tmp_lit/main.info.out
deleted file mode 100644
index 57d730a64..000000000
--- a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/main.info.out
+++ /dev/null
@@ -1,10 +0,0 @@
-local: [WILDCARD]main.js
-type: JavaScript
-dependencies: 4 unique
-size: [WILDCARD]
-
-file:///[WILDCARD]/dynamic_imports_tmp_lit/main.js ([WILDCARD])
-├── file:///[WILDCARD]/dynamic_imports_tmp_lit/sub/a.js ([WILDCARD])
-├── file:///[WILDCARD]/dynamic_imports_tmp_lit/sub/b.ts ([WILDCARD])
-├── file:///[WILDCARD]/dynamic_imports_tmp_lit/other/data.json ([WILDCARD])
-└── file:///[WILDCARD]/dynamic_imports_tmp_lit/other/sub/data2.json ([WILDCARD])
diff --git a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/main.js b/cli/tests/testdata/compile/dynamic_imports_tmp_lit/main.js
deleted file mode 100644
index 3bda59772..000000000
--- a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/main.js
+++ /dev/null
@@ -1,14 +0,0 @@
-const fileNames = [
- "a.js",
- "b.ts",
-];
-
-for (const fileName of fileNames) {
- await import(`./sub/${fileName}`);
-}
-
-const jsonFileNames = ["data.json", "sub/data2.json"];
-for (const fileName of jsonFileNames) {
- const mod = await import(`./other/${fileName}`, { with: { type: "json" } });
- console.log(mod.default);
-}
diff --git a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/other/data.json b/cli/tests/testdata/compile/dynamic_imports_tmp_lit/other/data.json
deleted file mode 100644
index 0131e01e4..000000000
--- a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/other/data.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "data": 5
-}
diff --git a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/other/sub/data2.json b/cli/tests/testdata/compile/dynamic_imports_tmp_lit/other/sub/data2.json
deleted file mode 100644
index 858a13cdd..000000000
--- a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/other/sub/data2.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "data": 1
-}
diff --git a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/sub/a.js b/cli/tests/testdata/compile/dynamic_imports_tmp_lit/sub/a.js
deleted file mode 100644
index 7b2a34601..000000000
--- a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/sub/a.js
+++ /dev/null
@@ -1 +0,0 @@
-console.log("a");
diff --git a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/sub/b.ts b/cli/tests/testdata/compile/dynamic_imports_tmp_lit/sub/b.ts
deleted file mode 100644
index 6d012e7f1..000000000
--- a/cli/tests/testdata/compile/dynamic_imports_tmp_lit/sub/b.ts
+++ /dev/null
@@ -1 +0,0 @@
-console.log("b");
diff --git a/cli/tests/testdata/compile/node_modules_symlink_outside/main.out b/cli/tests/testdata/compile/node_modules_symlink_outside/main.out
deleted file mode 100644
index 61c83cba4..000000000
--- a/cli/tests/testdata/compile/node_modules_symlink_outside/main.out
+++ /dev/null
@@ -1,2 +0,0 @@
-4
-5
diff --git a/cli/tests/testdata/compile/node_modules_symlink_outside/main.ts b/cli/tests/testdata/compile/node_modules_symlink_outside/main.ts
deleted file mode 100644
index 45f681f7c..000000000
--- a/cli/tests/testdata/compile/node_modules_symlink_outside/main.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { getValue, setValue } from "npm:@denotest/esm-basic";
-
-setValue(4);
-
-console.log(getValue());
-console.log(Deno.readTextFileSync("./node_modules/test.txt"));
diff --git a/cli/tests/testdata/compile/node_modules_symlink_outside/main_compile_file.out b/cli/tests/testdata/compile/node_modules_symlink_outside/main_compile_file.out
deleted file mode 100644
index 1154c3256..000000000
--- a/cli/tests/testdata/compile/node_modules_symlink_outside/main_compile_file.out
+++ /dev/null
@@ -1,2 +0,0 @@
-Compile file:///[WILDCARD]/node_modules_symlink_outside/main.ts to [WILDCARD]
-Warning Symlink target is outside '[WILDCARD]node_modules_symlink_outside[WILDCARD]node_modules'. Inlining symlink at '[WILDCARD]node_modules_symlink_outside[WILDCARD]node_modules[WILDCARD]test.txt' to '[WILDCARD]node_modules_symlink_outside[WILDCARD]test.txt' as file.
diff --git a/cli/tests/testdata/compile/node_modules_symlink_outside/main_compile_folder.out b/cli/tests/testdata/compile/node_modules_symlink_outside/main_compile_folder.out
deleted file mode 100644
index e88b95834..000000000
--- a/cli/tests/testdata/compile/node_modules_symlink_outside/main_compile_folder.out
+++ /dev/null
@@ -1,6 +0,0 @@
-Download http://localhost:4545/npm/registry/@denotest/esm-basic
-Download http://localhost:4545/npm/registry/@denotest/esm-basic/1.0.0.tgz
-Initialize @denotest/esm-basic@1.0.0
-Check file:///[WILDCARD]/node_modules_symlink_outside/main.ts
-Compile file:///[WILDCARD]/node_modules_symlink_outside/main.ts to [WILDCARD]
-Warning Symlink target is outside '[WILDCARD]node_modules_symlink_outside[WILDCARD]node_modules'. Excluding symlink at '[WILDCARD]node_modules_symlink_outside[WILDCARD]node_modules[WILDCARD]some_folder' with target '[WILDCARD]node_modules_symlink_outside[WILDCARD]some_folder'.
diff --git a/cli/tests/testdata/compile/npm_fs/main.out b/cli/tests/testdata/compile/npm_fs/main.out
deleted file mode 100644
index 2e9ba477f..000000000
--- a/cli/tests/testdata/compile/npm_fs/main.out
+++ /dev/null
@@ -1 +0,0 @@
-success
diff --git a/cli/tests/testdata/compile/npm_fs/main.ts b/cli/tests/testdata/compile/npm_fs/main.ts
deleted file mode 100644
index 6361610a9..000000000
--- a/cli/tests/testdata/compile/npm_fs/main.ts
+++ /dev/null
@@ -1,259 +0,0 @@
-import { url } from "npm:@denotest/esm-basic";
-import { fileURLToPath } from "node:url";
-import path from "node:path";
-import assert from "node:assert/strict";
-
-// will be at node_modules\.deno\@denotest+esm-basic@1.0.0\node_modules\@denotest\esm-basic
-const dirPath = path.dirname(fileURLToPath(url));
-const nodeModulesPath = path.join(dirPath, "../../../../../");
-const packageJsonText = `{
- "name": "@denotest/esm-basic",
- "version": "1.0.0",
- "type": "module",
- "main": "main.mjs",
- "types": "main.d.mts"
-}
-`;
-const vfsPackageJsonPath = path.join(dirPath, "package.json");
-
-// reading a file in vfs
-{
- const text = Deno.readTextFileSync(vfsPackageJsonPath);
- assert.equal(text, packageJsonText);
-}
-
-// reading a file async in vfs
-{
- const text = await Deno.readTextFile(vfsPackageJsonPath);
- assert.equal(text, packageJsonText);
-}
-
-// copy file from vfs to real fs
-{
- Deno.copyFileSync(vfsPackageJsonPath, "package.json");
- assert.equal(Deno.readTextFileSync("package.json"), packageJsonText);
-}
-
-// copy to vfs
-assert.throws(
- () => Deno.copyFileSync("package.json", vfsPackageJsonPath),
- Deno.errors.NotSupported,
-);
-Deno.removeSync("package.json");
-
-// copy file async from vfs to real fs
-{
- await Deno.copyFile(vfsPackageJsonPath, "package.json");
- assert.equal(Deno.readTextFileSync("package.json"), packageJsonText);
-}
-
-// copy to vfs async
-await assert.rejects(
- () => Deno.copyFile("package.json", vfsPackageJsonPath),
- Deno.errors.NotSupported,
-);
-Deno.removeSync("package.json");
-
-// open
-{
- const file = Deno.openSync(vfsPackageJsonPath);
- const bytes = new Uint8Array(10);
- file.seekSync(2, Deno.SeekMode.Start);
- assert.equal(file.readSync(bytes), 10);
- const text = new TextDecoder().decode(bytes);
- assert.equal(text, packageJsonText.slice(2, 12));
-}
-{
- const file = await Deno.open(vfsPackageJsonPath);
- const bytes = new Uint8Array(10);
- await file.seek(2, Deno.SeekMode.Start);
- assert.equal(await file.read(bytes), 10);
- const text = new TextDecoder().decode(bytes);
- assert.equal(text, packageJsonText.slice(2, 12));
-}
-
-// chdir
-assert.throws(() => Deno.chdir(dirPath), Deno.errors.NotSupported);
-
-// mkdir
-assert.throws(
- () => Deno.mkdirSync(path.join(dirPath, "subDir")),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.mkdir(path.join(dirPath, "subDir")),
- Deno.errors.NotSupported,
-);
-
-// chmod
-assert.throws(
- () => Deno.chmodSync(vfsPackageJsonPath, 0o777),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.chmod(vfsPackageJsonPath, 0o777),
- Deno.errors.NotSupported,
-);
-
-// chown
-assert.throws(
- () => Deno.chownSync(vfsPackageJsonPath, 1000, 1000),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.chown(vfsPackageJsonPath, 1000, 1000),
- Deno.errors.NotSupported,
-);
-
-// remove
-assert.throws(
- () => Deno.removeSync(vfsPackageJsonPath),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.remove(vfsPackageJsonPath),
- Deno.errors.NotSupported,
-);
-
-// stat
-{
- const result = Deno.statSync(vfsPackageJsonPath);
- assert(result.isFile);
-}
-{
- const result = await Deno.stat(vfsPackageJsonPath);
- assert(result.isFile);
-}
-
-// lstat
-{
- const result = Deno.lstatSync(
- path.join(nodeModulesPath, "@denotest", "esm-basic"),
- );
- assert(result.isSymlink);
-}
-{
- const result = await Deno.lstat(
- path.join(nodeModulesPath, "@denotest", "esm-basic"),
- );
- assert(result.isSymlink);
-}
-
-// realpath
-{
- const result = Deno.realPathSync(
- path.join(nodeModulesPath, "@denotest", "esm-basic", "package.json"),
- );
- assert.equal(result, vfsPackageJsonPath);
-}
-{
- const result = await Deno.realPath(
- path.join(nodeModulesPath, "@denotest", "esm-basic", "package.json"),
- );
- assert.equal(result, vfsPackageJsonPath);
-}
-
-// read dir
-const readDirNames = ["main.d.mts", "main.mjs", "other.mjs", "package.json"];
-{
- const names = Array.from(Deno.readDirSync(dirPath))
- .map((e) => e.name);
- assert.deepEqual(readDirNames, names);
-}
-{
- const names = [];
- for await (const entry of Deno.readDir(dirPath)) {
- names.push(entry.name);
- }
- assert.deepEqual(readDirNames, names);
-}
-
-// rename
-assert.throws(
- () => Deno.renameSync("package.json", vfsPackageJsonPath),
- Deno.errors.NotSupported,
-);
-assert.throws(
- () => Deno.renameSync(vfsPackageJsonPath, "package.json"),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.rename("package.json", vfsPackageJsonPath),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.rename(vfsPackageJsonPath, "package.json"),
- Deno.errors.NotSupported,
-);
-
-// link
-assert.throws(
- () => Deno.linkSync("package.json", vfsPackageJsonPath),
- Deno.errors.NotSupported,
-);
-assert.throws(
- () => Deno.linkSync(vfsPackageJsonPath, "package.json"),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.link("package.json", vfsPackageJsonPath),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.link(vfsPackageJsonPath, "package.json"),
- Deno.errors.NotSupported,
-);
-
-// symlink
-assert.throws(
- () => Deno.symlinkSync("package.json", vfsPackageJsonPath),
- Deno.errors.NotSupported,
-);
-assert.throws(
- () => Deno.symlinkSync(vfsPackageJsonPath, "package.json"),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.symlink("package.json", vfsPackageJsonPath),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.symlink(vfsPackageJsonPath, "package.json"),
- Deno.errors.NotSupported,
-);
-
-// read link
-{
- const result = Deno.readLinkSync(
- path.join(nodeModulesPath, "@denotest", "esm-basic"),
- );
- assert.equal(result, dirPath);
-}
-{
- const result = await Deno.readLink(
- path.join(nodeModulesPath, "@denotest", "esm-basic"),
- );
- assert.equal(result, dirPath);
-}
-
-// truncate
-assert.throws(
- () => Deno.truncateSync(vfsPackageJsonPath, 0),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.truncate(vfsPackageJsonPath, 0),
- Deno.errors.NotSupported,
-);
-
-// utime
-assert.throws(
- () => Deno.utimeSync(vfsPackageJsonPath, 0, 0),
- Deno.errors.NotSupported,
-);
-await assert.rejects(
- () => Deno.utime(vfsPackageJsonPath, 0, 0),
- Deno.errors.NotSupported,
-);
-
-console.log("success");
diff --git a/cli/tests/testdata/compile/standalone_error.ts b/cli/tests/testdata/compile/standalone_error.ts
deleted file mode 100644
index 279398113..000000000
--- a/cli/tests/testdata/compile/standalone_error.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-function boom() {
- throw new Error("boom!");
-}
-
-function foo() {
- boom();
-}
-
-foo();
diff --git a/cli/tests/testdata/compile/standalone_error_module_with_imports_1.ts b/cli/tests/testdata/compile/standalone_error_module_with_imports_1.ts
deleted file mode 100644
index bf38f7263..000000000
--- a/cli/tests/testdata/compile/standalone_error_module_with_imports_1.ts
+++ /dev/null
@@ -1 +0,0 @@
-import "./standalone_error_module_with_imports_2.ts";
diff --git a/cli/tests/testdata/compile/standalone_error_module_with_imports_2.ts b/cli/tests/testdata/compile/standalone_error_module_with_imports_2.ts
deleted file mode 100644
index ef052b512..000000000
--- a/cli/tests/testdata/compile/standalone_error_module_with_imports_2.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-console.log("hello");
-throw new Error("boom!");
diff --git a/cli/tests/testdata/compile/standalone_follow_redirects.ts b/cli/tests/testdata/compile/standalone_follow_redirects.ts
deleted file mode 100644
index f0957bc3d..000000000
--- a/cli/tests/testdata/compile/standalone_follow_redirects.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import "./standalone_follow_redirects_2.js";
-console.log("Hello");
diff --git a/cli/tests/testdata/compile/standalone_follow_redirects_2.js b/cli/tests/testdata/compile/standalone_follow_redirects_2.js
deleted file mode 100644
index 00ebc0f5c..000000000
--- a/cli/tests/testdata/compile/standalone_follow_redirects_2.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// unversioned import redirects with dependencies.
-import {
- assertNotEquals as _a,
- assertStrictEquals as _b,
-} from "../../../../test_util/std/assert/mod.ts";
diff --git a/cli/tests/testdata/compile/standalone_import_datauri.ts b/cli/tests/testdata/compile/standalone_import_datauri.ts
deleted file mode 100644
index 68f348828..000000000
--- a/cli/tests/testdata/compile/standalone_import_datauri.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-const c = await import(
- "data:text/javascript;base64,ZXhwb3J0IGRlZmF1bHQgJ0hlbGxvIERlbm8hJw=="
-);
-console.log(c.default); // Output: "Hello Deno!"
diff --git a/cli/tests/testdata/compile/standalone_import_map.json b/cli/tests/testdata/compile/standalone_import_map.json
deleted file mode 100644
index 9e5b90bd7..000000000
--- a/cli/tests/testdata/compile/standalone_import_map.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "imports": {
- "hello": "../run/001_hello.js"
- }
-}
diff --git a/cli/tests/testdata/compile/standalone_import_map.ts b/cli/tests/testdata/compile/standalone_import_map.ts
deleted file mode 100644
index 097b96356..000000000
--- a/cli/tests/testdata/compile/standalone_import_map.ts
+++ /dev/null
@@ -1 +0,0 @@
-import "hello";
diff --git a/cli/tests/testdata/compile/standalone_import_map_config.json b/cli/tests/testdata/compile/standalone_import_map_config.json
deleted file mode 100644
index 4959827f4..000000000
--- a/cli/tests/testdata/compile/standalone_import_map_config.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "importMap": "./standalone_import_map.json"
-}
diff --git a/cli/tests/testdata/compile/standalone_runtime_flags.ts b/cli/tests/testdata/compile/standalone_runtime_flags.ts
deleted file mode 100644
index 0154c7f4e..000000000
--- a/cli/tests/testdata/compile/standalone_runtime_flags.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-console.log(Math.random());
-await Deno.stat(".");
-await Deno.create("foo.txt");
diff --git a/cli/tests/testdata/compile/unstable_features.ts b/cli/tests/testdata/compile/unstable_features.ts
deleted file mode 100644
index 819a3d187..000000000
--- a/cli/tests/testdata/compile/unstable_features.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-const db = await Deno.openKv();
-console.log(db);
diff --git a/cli/tests/testdata/compile/vfs_implicit_read_permission/main.out b/cli/tests/testdata/compile/vfs_implicit_read_permission/main.out
deleted file mode 100644
index 17d05159c..000000000
--- a/cli/tests/testdata/compile/vfs_implicit_read_permission/main.out
+++ /dev/null
@@ -1,8 +0,0 @@
- __________________
-< Hello from Deno! >
- ------------------
- \ ^__^
- \ (oo)\_______
- (__)\ )\/\
- ||----w |
- || ||
diff --git a/cli/tests/testdata/compile/vfs_implicit_read_permission/main.ts b/cli/tests/testdata/compile/vfs_implicit_read_permission/main.ts
deleted file mode 100644
index 56ad1e095..000000000
--- a/cli/tests/testdata/compile/vfs_implicit_read_permission/main.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// this will read a file from the package
-import { say } from "npm:cowsay@1.5.0";
-console.log(say({ text: "Hello from Deno!" }));
diff --git a/cli/tests/testdata/compile/workers/basic.out b/cli/tests/testdata/compile/workers/basic.out
deleted file mode 100644
index 9cf9aa18f..000000000
--- a/cli/tests/testdata/compile/workers/basic.out
+++ /dev/null
@@ -1,5 +0,0 @@
-worker.js imported from main thread
-Starting worker
-Hello from worker!
-Received 42
-Closing
diff --git a/cli/tests/testdata/compile/workers/basic.ts b/cli/tests/testdata/compile/workers/basic.ts
deleted file mode 100644
index 8edf58de9..000000000
--- a/cli/tests/testdata/compile/workers/basic.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import "./worker.ts";
-
-console.log("Starting worker");
-const worker = new Worker(
- new URL("./worker.ts", import.meta.url),
- { type: "module" },
-);
-
-setTimeout(() => {
- worker.postMessage(42);
-}, 500);
diff --git a/cli/tests/testdata/compile/workers/not_in_module_map.ts b/cli/tests/testdata/compile/workers/not_in_module_map.ts
deleted file mode 100644
index b43f8cb1f..000000000
--- a/cli/tests/testdata/compile/workers/not_in_module_map.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// This time ./worker.ts is not in the module map, so the worker
-// initialization will fail unless worker.js is passed as a side module.
-
-const worker = new Worker(
- new URL("./worker.ts", import.meta.url),
- { type: "module" },
-);
-
-setTimeout(() => {
- worker.postMessage(42);
-}, 500);
diff --git a/cli/tests/testdata/compile/workers/worker.ts b/cli/tests/testdata/compile/workers/worker.ts
deleted file mode 100644
index a1c357ab1..000000000
--- a/cli/tests/testdata/compile/workers/worker.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/// <reference no-default-lib="true" />
-/// <reference lib="deno.worker" />
-
-if (import.meta.main) {
- console.log("Hello from worker!");
-
- addEventListener("message", (evt) => {
- console.log(`Received ${evt.data}`);
- console.log("Closing");
- self.close();
- });
-} else {
- console.log("worker.js imported from main thread");
-}