summaryrefslogtreecommitdiff
path: root/tests/testdata/bundle
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-03 01:27:37 +1000
committerGitHub <noreply@github.com>2024-09-02 17:27:37 +0200
commitbc51eca70000e809ef3b64f66e9482316768e02a (patch)
treed9972377959be338e7192e7e53f94584432c263c /tests/testdata/bundle
parent503f95a54fe290471b0807157e37d2d996ff0357 (diff)
BREAKING: remove `deno bundle` (#25339)
`deno bundle` now produces: ``` error: ⚠️ `deno bundle` was removed in Deno 2. See the Deno 1.x to 2.x Migration Guide for migration instructions: https://docs.deno.com/runtime/manual/advanced/migrate_deprecations ``` `deno bundle --help` now produces: ``` ⚠️ `deno bundle` was removed in Deno 2. See the Deno 1.x to 2.x Migration Guide for migration instructions: https://docs.deno.com/runtime/manual/advanced/migrate_deprecations Usage: deno bundle [OPTIONS] Options: -q, --quiet Suppress diagnostic output --unstable Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable ```
Diffstat (limited to 'tests/testdata/bundle')
-rw-r--r--tests/testdata/bundle/bare_imports/error_with_bare_import.ts1
-rw-r--r--tests/testdata/bundle/bare_imports/error_with_bare_import.ts.out2
-rw-r--r--tests/testdata/bundle/bundle.test.out27
-rw-r--r--tests/testdata/bundle/check_local_by_default/no_errors.out6
-rw-r--r--tests/testdata/bundle/check_local_by_default/no_errors.ts3
-rw-r--r--tests/testdata/bundle/check_local_by_default/type_error.out4
-rw-r--r--tests/testdata/bundle/check_local_by_default/type_error.ts6
-rw-r--r--tests/testdata/bundle/decorators/ts_decorators.out49
-rw-r--r--tests/testdata/bundle/decorators/ts_decorators.ts25
-rw-r--r--tests/testdata/bundle/dynamic_import.ts3
-rw-r--r--tests/testdata/bundle/file_extensions/js_without_extension.out8
-rw-r--r--tests/testdata/bundle/file_extensions/ts_without_extension.out7
-rw-r--r--tests/testdata/bundle/file_tests-fixture01.ts3
-rw-r--r--tests/testdata/bundle/file_tests-fixture02.ts4
-rw-r--r--tests/testdata/bundle/file_tests-fixture03.ts3
-rw-r--r--tests/testdata/bundle/file_tests-fixture04.ts3
-rw-r--r--tests/testdata/bundle/file_tests-fixture05.ts3
-rw-r--r--tests/testdata/bundle/file_tests-fixture06.ts4
-rw-r--r--tests/testdata/bundle/file_tests-fixture07.ts4
-rw-r--r--tests/testdata/bundle/file_tests-fixture08.ts1
-rw-r--r--tests/testdata/bundle/file_tests-fixture09.ts1
-rw-r--r--tests/testdata/bundle/file_tests-fixture10.ts7
-rw-r--r--tests/testdata/bundle/file_tests-fixture11.ts32
-rw-r--r--tests/testdata/bundle/file_tests-fixture12.ts7
-rw-r--r--tests/testdata/bundle/file_tests-fixture13.ts11
-rw-r--r--tests/testdata/bundle/file_tests-fixture14.ts4
-rw-r--r--tests/testdata/bundle/file_tests-fixture15.ts3
-rw-r--r--tests/testdata/bundle/file_tests-fixture16.ts6
-rw-r--r--tests/testdata/bundle/file_tests-fixture16_2.ts2
-rw-r--r--tests/testdata/bundle/file_tests-subdir-a.ts1
-rw-r--r--tests/testdata/bundle/file_tests-subdir-b.ts3
-rw-r--r--tests/testdata/bundle/file_tests-subdir-c.ts2
-rw-r--r--tests/testdata/bundle/file_tests-subdir-d.ts3
-rw-r--r--tests/testdata/bundle/file_tests-subdir-e.ts1
-rw-r--r--tests/testdata/bundle/file_tests-subdir-f.ts2
-rw-r--r--tests/testdata/bundle/file_tests-subdir-g.ts12
-rw-r--r--tests/testdata/bundle/file_tests-subdir-h.ts12
-rw-r--r--tests/testdata/bundle/file_tests-subdir-i.ts3
-rw-r--r--tests/testdata/bundle/file_tests-subdir-j.ts3
-rw-r--r--tests/testdata/bundle/file_tests-subdir-k.ts11
-rw-r--r--tests/testdata/bundle/file_tests-subdir-l.ts1
-rw-r--r--tests/testdata/bundle/file_tests-subdir-m.ts2
-rw-r--r--tests/testdata/bundle/file_tests-subdir-n.ts3
-rw-r--r--tests/testdata/bundle/file_tests-subdir-o.ts5
-rw-r--r--tests/testdata/bundle/file_tests-subdir-p.ts1
-rw-r--r--tests/testdata/bundle/file_tests-subdir-q.ts13
-rw-r--r--tests/testdata/bundle/fixture01.out7
-rw-r--r--tests/testdata/bundle/fixture02.out12
-rw-r--r--tests/testdata/bundle/fixture03.out5
-rw-r--r--tests/testdata/bundle/fixture04.out2
-rw-r--r--tests/testdata/bundle/fixture05.out2
-rw-r--r--tests/testdata/bundle/fixture06.out12
-rw-r--r--tests/testdata/bundle/fixture07.out23
-rw-r--r--tests/testdata/bundle/fixture08.out7
-rw-r--r--tests/testdata/bundle/fixture09.out19
-rw-r--r--tests/testdata/bundle/fixture10.out5
-rw-r--r--tests/testdata/bundle/fixture11.out30
-rw-r--r--tests/testdata/bundle/fixture12.out7
-rw-r--r--tests/testdata/bundle/fixture13.out17
-rw-r--r--tests/testdata/bundle/fixture14.out2
-rw-r--r--tests/testdata/bundle/fixture15.out4
-rw-r--r--tests/testdata/bundle/fixture16.out6
-rw-r--r--tests/testdata/bundle/https_deno.land-x-lib-a.ts1
-rw-r--r--tests/testdata/bundle/https_deno.land-x-lib-b.js1
-rw-r--r--tests/testdata/bundle/https_deno.land-x-lib-c.d.ts1
-rw-r--r--tests/testdata/bundle/https_deno.land-x-lib-c.js3
-rw-r--r--tests/testdata/bundle/https_deno.land-x-lib-mod.d.ts9
-rw-r--r--tests/testdata/bundle/https_deno.land-x-lib-mod.js5
-rw-r--r--tests/testdata/bundle/ignore_directives.test.out6
-rw-r--r--tests/testdata/bundle/import_map/import_map.json5
-rw-r--r--tests/testdata/bundle/import_map/main.ts17
-rw-r--r--tests/testdata/bundle/jsx.out9
-rw-r--r--tests/testdata/bundle/shebang_file.bundle.out12
73 files changed, 0 insertions, 546 deletions
diff --git a/tests/testdata/bundle/bare_imports/error_with_bare_import.ts b/tests/testdata/bundle/bare_imports/error_with_bare_import.ts
deleted file mode 100644
index c0748305d..000000000
--- a/tests/testdata/bundle/bare_imports/error_with_bare_import.ts
+++ /dev/null
@@ -1 +0,0 @@
-import "foo";
diff --git a/tests/testdata/bundle/bare_imports/error_with_bare_import.ts.out b/tests/testdata/bundle/bare_imports/error_with_bare_import.ts.out
deleted file mode 100644
index 44d063a5e..000000000
--- a/tests/testdata/bundle/bare_imports/error_with_bare_import.ts.out
+++ /dev/null
@@ -1,2 +0,0 @@
-[WILDCARD]error: Relative import path "foo" not prefixed with / or ./ or ../
- at file:///[WILDCARD]/error_with_bare_import.ts:[WILDCARD]
diff --git a/tests/testdata/bundle/bundle.test.out b/tests/testdata/bundle/bundle.test.out
deleted file mode 100644
index 6b1c109d3..000000000
--- a/tests/testdata/bundle/bundle.test.out
+++ /dev/null
@@ -1,27 +0,0 @@
-[WILDCARD]
-function printHello() {
- console.log("Hello");
-}
-function returnsFoo() {
- return "Foo";
-}
-function printHello2() {
- printHello();
-}
-function returnsHi() {
- return "Hi";
-}
-function returnsFoo2() {
- return returnsFoo();
-}
-function printHello3() {
- printHello2();
-}
-function throwsError() {
- throw Error("exception from mod1");
-}
-export { returnsHi as returnsHi };
-export { returnsFoo2 as returnsFoo2 };
-export { printHello3 as printHello3 };
-export { throwsError as throwsError };
-
diff --git a/tests/testdata/bundle/check_local_by_default/no_errors.out b/tests/testdata/bundle/check_local_by_default/no_errors.out
deleted file mode 100644
index c4559d1fa..000000000
--- a/tests/testdata/bundle/check_local_by_default/no_errors.out
+++ /dev/null
@@ -1,6 +0,0 @@
-// deno-fmt-ignore-file
-// deno-lint-ignore-file
-// This code was bundled using `deno bundle` and it's not recommended to edit it manually
-
-console.log(12);
-
diff --git a/tests/testdata/bundle/check_local_by_default/no_errors.ts b/tests/testdata/bundle/check_local_by_default/no_errors.ts
deleted file mode 100644
index 2ae8c2692..000000000
--- a/tests/testdata/bundle/check_local_by_default/no_errors.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/tests/testdata/bundle/check_local_by_default/type_error.out b/tests/testdata/bundle/check_local_by_default/type_error.out
deleted file mode 100644
index 6d53e9498..000000000
--- a/tests/testdata/bundle/check_local_by_default/type_error.out
+++ /dev/null
@@ -1,4 +0,0 @@
-error: TS2322 [ERROR]: Type '12' is not assignable to type '"b"'.
-const b: "b" = 12;
- ^
- at [WILDCARD]bundle/check_local_by_default/type_error.ts:3:7
diff --git a/tests/testdata/bundle/check_local_by_default/type_error.ts b/tests/testdata/bundle/check_local_by_default/type_error.ts
deleted file mode 100644
index 5177ff944..000000000
--- a/tests/testdata/bundle/check_local_by_default/type_error.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/tests/testdata/bundle/decorators/ts_decorators.out b/tests/testdata/bundle/decorators/ts_decorators.out
deleted file mode 100644
index e988aadd3..000000000
--- a/tests/testdata/bundle/decorators/ts_decorators.out
+++ /dev/null
@@ -1,49 +0,0 @@
-[WILDCARD]
-// deno-fmt-ignore-file
-// deno-lint-ignore-file
-// This code was bundled using `deno bundle` and it's not recommended to edit it manually
-
-function _ts_decorate(decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-}
-function a() {
- console.log("a(): evaluated");
- return (_target, _propertyKey, _descriptor)=>{
- console.log("a(): called");
- };
-}
-class B {
- method() {
- console.log("method");
- }
-}
-_ts_decorate([
- a()
-], B.prototype, "method", null);
-function _ts_decorate1(decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-}
-function Decorator() {
- return function(target, propertyKey, descriptor) {
- const originalFn = descriptor.value;
- descriptor.value = async function(...args) {
- return await originalFn.apply(this, args);
- };
- return descriptor;
- };
-}
-class SomeClass {
- async test() {}
-}
-_ts_decorate1([
- Decorator()
-], SomeClass.prototype, "test", null);
-new SomeClass().test();
-new B().method();
-[WILDCARD] \ No newline at end of file
diff --git a/tests/testdata/bundle/decorators/ts_decorators.ts b/tests/testdata/bundle/decorators/ts_decorators.ts
deleted file mode 100644
index 61299bccf..000000000
--- a/tests/testdata/bundle/decorators/ts_decorators.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// deno-lint-ignore-file
-
-import { B } from "../../subdir/more_decorators.ts";
-
-function Decorator() {
- return function (
- target: Record<string, any>,
- propertyKey: string,
- descriptor: TypedPropertyDescriptor<any>,
- ) {
- const originalFn: Function = descriptor.value as Function;
- descriptor.value = async function (...args: any[]) {
- return await originalFn.apply(this, args);
- };
- return descriptor;
- };
-}
-
-class SomeClass {
- @Decorator()
- async test() {}
-}
-
-new SomeClass().test();
-new B().method();
diff --git a/tests/testdata/bundle/dynamic_import.ts b/tests/testdata/bundle/dynamic_import.ts
deleted file mode 100644
index d8c7d08ec..000000000
--- a/tests/testdata/bundle/dynamic_import.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-const mod1 = await import("http://localhost:4545/subdir/mod1.ts");
-
-mod1.printHello3();
diff --git a/tests/testdata/bundle/file_extensions/js_without_extension.out b/tests/testdata/bundle/file_extensions/js_without_extension.out
deleted file mode 100644
index 0273e6207..000000000
--- a/tests/testdata/bundle/file_extensions/js_without_extension.out
+++ /dev/null
@@ -1,8 +0,0 @@
-[WILDCARD]
-// deno-fmt-ignore-file
-// deno-lint-ignore-file
-// This code was bundled using `deno bundle` and it's not recommended to edit it manually
-
-"hello";
-console.log("executing javascript with no extension");
-
diff --git a/tests/testdata/bundle/file_extensions/ts_without_extension.out b/tests/testdata/bundle/file_extensions/ts_without_extension.out
deleted file mode 100644
index 39e355d14..000000000
--- a/tests/testdata/bundle/file_extensions/ts_without_extension.out
+++ /dev/null
@@ -1,7 +0,0 @@
-[WILDCARD]
-// deno-fmt-ignore-file
-// deno-lint-ignore-file
-// This code was bundled using `deno bundle` and it's not recommended to edit it manually
-
-console.log("executing typescript with no extension");
-
diff --git a/tests/testdata/bundle/file_tests-fixture01.ts b/tests/testdata/bundle/file_tests-fixture01.ts
deleted file mode 100644
index 3598d0298..000000000
--- a/tests/testdata/bundle/file_tests-fixture01.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import * as a from "./subdir/a.ts";
-
-console.log(a);
diff --git a/tests/testdata/bundle/file_tests-fixture02.ts b/tests/testdata/bundle/file_tests-fixture02.ts
deleted file mode 100644
index 0cd291329..000000000
--- a/tests/testdata/bundle/file_tests-fixture02.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import * as b from "./subdir/b.ts";
-
-console.log(b.b); // "b"
-console.log(b.c); // { c: "c", default: class C }
diff --git a/tests/testdata/bundle/file_tests-fixture03.ts b/tests/testdata/bundle/file_tests-fixture03.ts
deleted file mode 100644
index 78365ce13..000000000
--- a/tests/testdata/bundle/file_tests-fixture03.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { d } from "./subdir/d.ts";
-
-console.log(d);
diff --git a/tests/testdata/bundle/file_tests-fixture04.ts b/tests/testdata/bundle/file_tests-fixture04.ts
deleted file mode 100644
index 590f4fef9..000000000
--- a/tests/testdata/bundle/file_tests-fixture04.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-const a = await import("./subdir/a.ts");
-
-console.log(a);
diff --git a/tests/testdata/bundle/file_tests-fixture05.ts b/tests/testdata/bundle/file_tests-fixture05.ts
deleted file mode 100644
index 19541ce59..000000000
--- a/tests/testdata/bundle/file_tests-fixture05.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { a } from "./subdir/e.ts";
-
-console.log(a);
diff --git a/tests/testdata/bundle/file_tests-fixture06.ts b/tests/testdata/bundle/file_tests-fixture06.ts
deleted file mode 100644
index 3d94332df..000000000
--- a/tests/testdata/bundle/file_tests-fixture06.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { isMain, modUrl } from "./subdir/f.ts";
-
-console.log(isMain, modUrl);
-console.log(import.meta.main, import.meta.url);
diff --git a/tests/testdata/bundle/file_tests-fixture07.ts b/tests/testdata/bundle/file_tests-fixture07.ts
deleted file mode 100644
index 0475a6c53..000000000
--- a/tests/testdata/bundle/file_tests-fixture07.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { G } from "./subdir/g.ts";
-import { H } from "./subdir/h.ts";
-
-console.log(new G(true), new H(true));
diff --git a/tests/testdata/bundle/file_tests-fixture08.ts b/tests/testdata/bundle/file_tests-fixture08.ts
deleted file mode 100644
index 6af5d172e..000000000
--- a/tests/testdata/bundle/file_tests-fixture08.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * as a from "./subdir/a.ts";
diff --git a/tests/testdata/bundle/file_tests-fixture09.ts b/tests/testdata/bundle/file_tests-fixture09.ts
deleted file mode 100644
index 30ba983ee..000000000
--- a/tests/testdata/bundle/file_tests-fixture09.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { a } from "./subdir/k.ts";
diff --git a/tests/testdata/bundle/file_tests-fixture10.ts b/tests/testdata/bundle/file_tests-fixture10.ts
deleted file mode 100644
index bec555da8..000000000
--- a/tests/testdata/bundle/file_tests-fixture10.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { a as defaultA } from "./subdir/l.ts";
-
-const o: { a?: string } = {};
-
-const { a = defaultA } = o;
-
-console.log(a);
diff --git a/tests/testdata/bundle/file_tests-fixture11.ts b/tests/testdata/bundle/file_tests-fixture11.ts
deleted file mode 100644
index 1c361438f..000000000
--- a/tests/testdata/bundle/file_tests-fixture11.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import { a as defaultA, O } from "./subdir/m.ts";
-export { O } from "./subdir/m.ts";
-
-interface AOptions {
- a?();
- c?: O;
-}
-
-class A {
- #a: () => void;
- #c?: O;
- constructor(o: AOptions = {}) {
- const {
- a = defaultA,
- c,
- } = o;
- this.#a = a;
- this.#c = c;
- }
-
- a() {
- this.#a();
- }
-
- c() {
- console.log(this.#c);
- }
-}
-
-const a = new A();
-a.a();
-a.c();
diff --git a/tests/testdata/bundle/file_tests-fixture12.ts b/tests/testdata/bundle/file_tests-fixture12.ts
deleted file mode 100644
index 32b9566bd..000000000
--- a/tests/testdata/bundle/file_tests-fixture12.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { a } from "./subdir/p.ts";
-
-function b() {
- a();
-}
-
-b();
diff --git a/tests/testdata/bundle/file_tests-fixture13.ts b/tests/testdata/bundle/file_tests-fixture13.ts
deleted file mode 100644
index 7dc13534c..000000000
--- a/tests/testdata/bundle/file_tests-fixture13.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { D, d } from "./subdir/q.ts";
-
-class A {
- private s: D = d();
-
- a() {
- this.s.resolve();
- }
-}
-
-new A();
diff --git a/tests/testdata/bundle/file_tests-fixture14.ts b/tests/testdata/bundle/file_tests-fixture14.ts
deleted file mode 100644
index aa8eef1b8..000000000
--- a/tests/testdata/bundle/file_tests-fixture14.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// @deno-types="https://deno.land/x/lib/mod.d.ts"
-import * as lib from "https://deno.land/x/lib/mod.js";
-
-console.log(lib);
diff --git a/tests/testdata/bundle/file_tests-fixture15.ts b/tests/testdata/bundle/file_tests-fixture15.ts
deleted file mode 100644
index c1dd3bc89..000000000
--- a/tests/testdata/bundle/file_tests-fixture15.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export function getIndex(c: string): number {
- return "\x00\r\n\x85\u2028\u2029".indexOf(c);
-}
diff --git a/tests/testdata/bundle/file_tests-fixture16.ts b/tests/testdata/bundle/file_tests-fixture16.ts
deleted file mode 100644
index 5d0b05e92..000000000
--- a/tests/testdata/bundle/file_tests-fixture16.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// todo(dsherret): use ./subdir/a.ts once fixtures are restored
-export { a as test1 } from "./file_tests-fixture16_2.ts";
-export { a as test2 } from "./file_tests-fixture16_2.ts";
-import { a } from "./file_tests-fixture16_2.ts";
-
-console.log(a);
diff --git a/tests/testdata/bundle/file_tests-fixture16_2.ts b/tests/testdata/bundle/file_tests-fixture16_2.ts
deleted file mode 100644
index 7115949c9..000000000
--- a/tests/testdata/bundle/file_tests-fixture16_2.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-// todo(dsherret): delete this and use ./subdir/a.ts in the file once fixtures are restored
-export const a = "a";
diff --git a/tests/testdata/bundle/file_tests-subdir-a.ts b/tests/testdata/bundle/file_tests-subdir-a.ts
deleted file mode 100644
index 9233cce2f..000000000
--- a/tests/testdata/bundle/file_tests-subdir-a.ts
+++ /dev/null
@@ -1 +0,0 @@
-export const a = "a";
diff --git a/tests/testdata/bundle/file_tests-subdir-b.ts b/tests/testdata/bundle/file_tests-subdir-b.ts
deleted file mode 100644
index 1cf751c22..000000000
--- a/tests/testdata/bundle/file_tests-subdir-b.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export * as c from "./c.ts";
-
-export const b = "b";
diff --git a/tests/testdata/bundle/file_tests-subdir-c.ts b/tests/testdata/bundle/file_tests-subdir-c.ts
deleted file mode 100644
index 7cc01f993..000000000
--- a/tests/testdata/bundle/file_tests-subdir-c.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const c = "c";
-export default class C {}
diff --git a/tests/testdata/bundle/file_tests-subdir-d.ts b/tests/testdata/bundle/file_tests-subdir-d.ts
deleted file mode 100644
index 9f1ba7f67..000000000
--- a/tests/testdata/bundle/file_tests-subdir-d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { a } from "./a.ts";
-
-export const d = { a };
diff --git a/tests/testdata/bundle/file_tests-subdir-e.ts b/tests/testdata/bundle/file_tests-subdir-e.ts
deleted file mode 100644
index 55e8e0e18..000000000
--- a/tests/testdata/bundle/file_tests-subdir-e.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./a.ts";
diff --git a/tests/testdata/bundle/file_tests-subdir-f.ts b/tests/testdata/bundle/file_tests-subdir-f.ts
deleted file mode 100644
index 8bc8d9bf4..000000000
--- a/tests/testdata/bundle/file_tests-subdir-f.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const isMain = import.meta.main;
-export const modUrl = import.meta.url;
diff --git a/tests/testdata/bundle/file_tests-subdir-g.ts b/tests/testdata/bundle/file_tests-subdir-g.ts
deleted file mode 100644
index 3eb4cd3cc..000000000
--- a/tests/testdata/bundle/file_tests-subdir-g.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-const g: number[] = [];
-
-export class G {
- #g!: number[];
- constructor(shared: boolean) {
- if (shared) {
- this.#g = g;
- } else {
- this.#g = [];
- }
- }
-}
diff --git a/tests/testdata/bundle/file_tests-subdir-h.ts b/tests/testdata/bundle/file_tests-subdir-h.ts
deleted file mode 100644
index 9c86dd5c5..000000000
--- a/tests/testdata/bundle/file_tests-subdir-h.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-const g: number[] = [];
-
-export class H {
- #g!: number[];
- constructor(shared: boolean) {
- if (shared) {
- this.#g = g;
- } else {
- this.#g = [];
- }
- }
-}
diff --git a/tests/testdata/bundle/file_tests-subdir-i.ts b/tests/testdata/bundle/file_tests-subdir-i.ts
deleted file mode 100644
index 4ad9ce449..000000000
--- a/tests/testdata/bundle/file_tests-subdir-i.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export function a(...d: string[]): string {
- return d.join(" ");
-}
diff --git a/tests/testdata/bundle/file_tests-subdir-j.ts b/tests/testdata/bundle/file_tests-subdir-j.ts
deleted file mode 100644
index ac7bce0ea..000000000
--- a/tests/testdata/bundle/file_tests-subdir-j.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export function a(...d: string[]): string {
- return d.join("/");
-}
diff --git a/tests/testdata/bundle/file_tests-subdir-k.ts b/tests/testdata/bundle/file_tests-subdir-k.ts
deleted file mode 100644
index 1b8a533f1..000000000
--- a/tests/testdata/bundle/file_tests-subdir-k.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import * as _i from "./i.ts";
-import * as _j from "./j.ts";
-
-const k = globalThis.value ? _i : _j;
-
-export const i = _i;
-export const j = _j;
-
-export const {
- a,
-} = k;
diff --git a/tests/testdata/bundle/file_tests-subdir-l.ts b/tests/testdata/bundle/file_tests-subdir-l.ts
deleted file mode 100644
index d767e6ad0..000000000
--- a/tests/testdata/bundle/file_tests-subdir-l.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { a } from "./a.ts";
diff --git a/tests/testdata/bundle/file_tests-subdir-m.ts b/tests/testdata/bundle/file_tests-subdir-m.ts
deleted file mode 100644
index 21e86d07c..000000000
--- a/tests/testdata/bundle/file_tests-subdir-m.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { a } from "./n.ts";
-export { O } from "./o.ts";
diff --git a/tests/testdata/bundle/file_tests-subdir-n.ts b/tests/testdata/bundle/file_tests-subdir-n.ts
deleted file mode 100644
index ac3c37005..000000000
--- a/tests/testdata/bundle/file_tests-subdir-n.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export function a() {
- console.log("a");
-}
diff --git a/tests/testdata/bundle/file_tests-subdir-o.ts b/tests/testdata/bundle/file_tests-subdir-o.ts
deleted file mode 100644
index ab9753fea..000000000
--- a/tests/testdata/bundle/file_tests-subdir-o.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export enum O {
- A,
- B,
- C,
-}
diff --git a/tests/testdata/bundle/file_tests-subdir-p.ts b/tests/testdata/bundle/file_tests-subdir-p.ts
deleted file mode 100644
index 19b486f71..000000000
--- a/tests/testdata/bundle/file_tests-subdir-p.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./i.ts";
diff --git a/tests/testdata/bundle/file_tests-subdir-q.ts b/tests/testdata/bundle/file_tests-subdir-q.ts
deleted file mode 100644
index eebe0a38b..000000000
--- a/tests/testdata/bundle/file_tests-subdir-q.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-// deno-lint-ignore-file
-export interface D {
- resolve: any;
- reject: any;
-}
-
-export function d(): D {
- let methods;
- const promise = new Promise((resolve, reject) => {
- methods = { resolve, reject };
- });
- return Object.assign(promise, methods);
-}
diff --git a/tests/testdata/bundle/fixture01.out b/tests/testdata/bundle/fixture01.out
deleted file mode 100644
index a825140b7..000000000
--- a/tests/testdata/bundle/fixture01.out
+++ /dev/null
@@ -1,7 +0,0 @@
-const a = "a";
-const mod = function() {
- return {
- a: a
- };
-}();
-console.log(mod);
diff --git a/tests/testdata/bundle/fixture02.out b/tests/testdata/bundle/fixture02.out
deleted file mode 100644
index 5c502e2f0..000000000
--- a/tests/testdata/bundle/fixture02.out
+++ /dev/null
@@ -1,12 +0,0 @@
-const c = "c";
-class C {
-}
-const mod = function() {
- return {
- default: C,
- c: c
- };
-}();
-const b = "b";
-console.log(b);
-console.log(mod);
diff --git a/tests/testdata/bundle/fixture03.out b/tests/testdata/bundle/fixture03.out
deleted file mode 100644
index 524e77abb..000000000
--- a/tests/testdata/bundle/fixture03.out
+++ /dev/null
@@ -1,5 +0,0 @@
-const a = "a";
-const d = {
- a
-};
-console.log(d);
diff --git a/tests/testdata/bundle/fixture04.out b/tests/testdata/bundle/fixture04.out
deleted file mode 100644
index 37869205b..000000000
--- a/tests/testdata/bundle/fixture04.out
+++ /dev/null
@@ -1,2 +0,0 @@
-const a = await import("./subdir/a.ts");
-console.log(a);
diff --git a/tests/testdata/bundle/fixture05.out b/tests/testdata/bundle/fixture05.out
deleted file mode 100644
index 1289cca5f..000000000
--- a/tests/testdata/bundle/fixture05.out
+++ /dev/null
@@ -1,2 +0,0 @@
-const a = "a";
-console.log(a);
diff --git a/tests/testdata/bundle/fixture06.out b/tests/testdata/bundle/fixture06.out
deleted file mode 100644
index 47288d5e4..000000000
--- a/tests/testdata/bundle/fixture06.out
+++ /dev/null
@@ -1,12 +0,0 @@
-const importMeta = {
- url: "file:///tests/subdir/f.ts",
- main: false
-};
-const isMain = importMeta.main;
-const modUrl = importMeta.url;
-const importMeta1 = {
- url: "file:///tests/fixture06.ts",
- main: import.meta.main
-};
-console.log(isMain, modUrl);
-console.log(importMeta1.main, importMeta1.url);
diff --git a/tests/testdata/bundle/fixture07.out b/tests/testdata/bundle/fixture07.out
deleted file mode 100644
index 39e6a11e8..000000000
--- a/tests/testdata/bundle/fixture07.out
+++ /dev/null
@@ -1,23 +0,0 @@
-const g = [];
-class G {
- #g;
- constructor(shared){
- if (shared) {
- this.#g = g;
- } else {
- this.#g = [];
- }
- }
-}
-const g1 = [];
-class H {
- #g;
- constructor(shared1){
- if (shared1) {
- this.#g = g1;
- } else {
- this.#g = [];
- }
- }
-}
-console.log(new G(true), new H(true));
diff --git a/tests/testdata/bundle/fixture08.out b/tests/testdata/bundle/fixture08.out
deleted file mode 100644
index bfe40aa37..000000000
--- a/tests/testdata/bundle/fixture08.out
+++ /dev/null
@@ -1,7 +0,0 @@
-const a1 = "a";
-const mod = function() {
- return {
- a: a1
- };
-}();
-export { mod as a };
diff --git a/tests/testdata/bundle/fixture09.out b/tests/testdata/bundle/fixture09.out
deleted file mode 100644
index e06cc92de..000000000
--- a/tests/testdata/bundle/fixture09.out
+++ /dev/null
@@ -1,19 +0,0 @@
-function a3(...d) {
- return d.join(" ");
-}
-const mod = function() {
- return {
- a: a3
- };
-}();
-function a1(...d) {
- return d.join("/");
-}
-const mod1 = function() {
- return {
- a: a1
- };
-}();
-const k = globalThis.value ? mod : mod1;
-const { a: a2 , } = k;
-export { a2 as a };
diff --git a/tests/testdata/bundle/fixture10.out b/tests/testdata/bundle/fixture10.out
deleted file mode 100644
index 5491e5e7f..000000000
--- a/tests/testdata/bundle/fixture10.out
+++ /dev/null
@@ -1,5 +0,0 @@
-const a = "a";
-const o = {
-};
-const { a: a1 = a } = o;
-console.log(a1);
diff --git a/tests/testdata/bundle/fixture11.out b/tests/testdata/bundle/fixture11.out
deleted file mode 100644
index 4f333a513..000000000
--- a/tests/testdata/bundle/fixture11.out
+++ /dev/null
@@ -1,30 +0,0 @@
-function a() {
- console.log("a");
-}
-var O1;
-(function(O) {
- O[O["A"] = 0] = "A";
- O[O["B"] = 1] = "B";
- O[O["C"] = 2] = "C";
-})(O1 || (O1 = {
-}));
-export { O1 as O };
-class A {
- #a;
- #c;
- constructor(o = {
- }){
- const { a: a1 = a , c , } = o;
- this.#a = a1;
- this.#c = c;
- }
- a() {
- this.#a();
- }
- c() {
- console.log(this.#c);
- }
-}
-const a2 = new A();
-a2.a();
-a2.c();
diff --git a/tests/testdata/bundle/fixture12.out b/tests/testdata/bundle/fixture12.out
deleted file mode 100644
index 64e2d6cdb..000000000
--- a/tests/testdata/bundle/fixture12.out
+++ /dev/null
@@ -1,7 +0,0 @@
-function a(...d) {
- return d.join(" ");
-}
-function b() {
- a();
-}
-b();
diff --git a/tests/testdata/bundle/fixture13.out b/tests/testdata/bundle/fixture13.out
deleted file mode 100644
index 1c7a8c991..000000000
--- a/tests/testdata/bundle/fixture13.out
+++ /dev/null
@@ -1,17 +0,0 @@
-function d() {
- let methods;
- const promise = new Promise((resolve, reject)=>{
- methods = {
- resolve,
- reject
- };
- });
- return Object.assign(promise, methods);
-}
-class A {
- s = d();
- a() {
- this.s.resolve();
- }
-}
-new A();
diff --git a/tests/testdata/bundle/fixture14.out b/tests/testdata/bundle/fixture14.out
deleted file mode 100644
index 392bb6478..000000000
--- a/tests/testdata/bundle/fixture14.out
+++ /dev/null
@@ -1,2 +0,0 @@
-const mod = [];
-console.log(mod);
diff --git a/tests/testdata/bundle/fixture15.out b/tests/testdata/bundle/fixture15.out
deleted file mode 100644
index dc72fdeff..000000000
--- a/tests/testdata/bundle/fixture15.out
+++ /dev/null
@@ -1,4 +0,0 @@
-function getIndex1(c) {
- return "\x00\r\n\x85\u2028\u2029".indexOf(c);
-}
-export { getIndex1 as getIndex };
diff --git a/tests/testdata/bundle/fixture16.out b/tests/testdata/bundle/fixture16.out
deleted file mode 100644
index 5e21c2a71..000000000
--- a/tests/testdata/bundle/fixture16.out
+++ /dev/null
@@ -1,6 +0,0 @@
-[WILDCARD]
-const a = "a";
-export { a as test1 };
-export { a as test2 };
-console.log(a);
-
diff --git a/tests/testdata/bundle/https_deno.land-x-lib-a.ts b/tests/testdata/bundle/https_deno.land-x-lib-a.ts
deleted file mode 100644
index a0a6f8e94..000000000
--- a/tests/testdata/bundle/https_deno.land-x-lib-a.ts
+++ /dev/null
@@ -1 +0,0 @@
-export const a: string[] = [];
diff --git a/tests/testdata/bundle/https_deno.land-x-lib-b.js b/tests/testdata/bundle/https_deno.land-x-lib-b.js
deleted file mode 100644
index 13cacdd8b..000000000
--- a/tests/testdata/bundle/https_deno.land-x-lib-b.js
+++ /dev/null
@@ -1 +0,0 @@
-export const b = [];
diff --git a/tests/testdata/bundle/https_deno.land-x-lib-c.d.ts b/tests/testdata/bundle/https_deno.land-x-lib-c.d.ts
deleted file mode 100644
index fac988e49..000000000
--- a/tests/testdata/bundle/https_deno.land-x-lib-c.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export const c: string[];
diff --git a/tests/testdata/bundle/https_deno.land-x-lib-c.js b/tests/testdata/bundle/https_deno.land-x-lib-c.js
deleted file mode 100644
index 620ca0b66..000000000
--- a/tests/testdata/bundle/https_deno.land-x-lib-c.js
+++ /dev/null
@@ -1,3 +0,0 @@
-/// <reference types="./c.d.ts" />
-
-export const c = [];
diff --git a/tests/testdata/bundle/https_deno.land-x-lib-mod.d.ts b/tests/testdata/bundle/https_deno.land-x-lib-mod.d.ts
deleted file mode 100644
index 76ed81df0..000000000
--- a/tests/testdata/bundle/https_deno.land-x-lib-mod.d.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export * as a from "./a.ts";
-export * as b from "./b.js";
-export * as c from "./c.js";
-
-export interface A {
- a: string;
-}
-
-export const mod: A[];
diff --git a/tests/testdata/bundle/https_deno.land-x-lib-mod.js b/tests/testdata/bundle/https_deno.land-x-lib-mod.js
deleted file mode 100644
index 505162094..000000000
--- a/tests/testdata/bundle/https_deno.land-x-lib-mod.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export * as a from "./a.ts";
-export * as b from "./b.js";
-export * as c from "./c.js";
-
-export const mod = [];
diff --git a/tests/testdata/bundle/ignore_directives.test.out b/tests/testdata/bundle/ignore_directives.test.out
deleted file mode 100644
index b69c2632c..000000000
--- a/tests/testdata/bundle/ignore_directives.test.out
+++ /dev/null
@@ -1,6 +0,0 @@
-[WILDCARD]
-// deno-fmt-ignore-file
-// deno-lint-ignore-file
-// This code was bundled using `deno bundle` and it's not recommended to edit it manually
-
-[WILDCARD]
diff --git a/tests/testdata/bundle/import_map/import_map.json b/tests/testdata/bundle/import_map/import_map.json
deleted file mode 100644
index c02f72718..000000000
--- a/tests/testdata/bundle/import_map/import_map.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "imports": {
- "mod2": "../../subdir/subdir2/mod2.ts"
- }
-}
diff --git a/tests/testdata/bundle/import_map/main.ts b/tests/testdata/bundle/import_map/main.ts
deleted file mode 100644
index 74834de20..000000000
--- a/tests/testdata/bundle/import_map/main.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { printHello2, returnsFoo } from "mod2";
-
-export function returnsHi(): string {
- return "Hi";
-}
-
-export function returnsFoo2(): string {
- return returnsFoo();
-}
-
-export function printHello3() {
- printHello2();
-}
-
-export function throwsError() {
- throw Error("exception from mod1");
-}
diff --git a/tests/testdata/bundle/jsx.out b/tests/testdata/bundle/jsx.out
deleted file mode 100644
index da83cde82..000000000
--- a/tests/testdata/bundle/jsx.out
+++ /dev/null
@@ -1,9 +0,0 @@
-[WILDCARD]
-const React = {
- createElement () {}
-};
-function app() {
- return React.createElement("div", null, React.createElement("h2", null, "asdf"));
-}
-console.log(app);
-
diff --git a/tests/testdata/bundle/shebang_file.bundle.out b/tests/testdata/bundle/shebang_file.bundle.out
deleted file mode 100644
index d3369bc9c..000000000
--- a/tests/testdata/bundle/shebang_file.bundle.out
+++ /dev/null
@@ -1,12 +0,0 @@
-⚠️ Warning: `deno bundle` is deprecated and will be removed in Deno 2.0.
-Use an alternative bundler like "deno_emit", "esbuild" or "rollup" instead.
-Bundle file:///[WILDCARD]/subdir/shebang_file.js
-#!/usr/bin/env -S deno run --allow-read
-// deno-fmt-ignore-file
-// deno-lint-ignore-file
-// This code was bundled using `deno bundle` and it's not recommended to edit it manually
-
-for (const item of Deno.readDirSync(".")){
- console.log(item.name);
-}
-