diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/095_cache_with_bare_import.ts (renamed from cli/tests/error_027_bare_import_error.ts) | 0 | ||||
-rw-r--r-- | cli/tests/095_cache_with_bare_import.ts.out | 1 | ||||
-rw-r--r-- | cli/tests/error_027_bare_import_error.ts.out | 8 | ||||
-rw-r--r-- | cli/tests/error_027_bundle_with_bare_import.ts | 1 | ||||
-rw-r--r-- | cli/tests/error_027_bundle_with_bare_import.ts.out | 1 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 12 |
6 files changed, 12 insertions, 11 deletions
diff --git a/cli/tests/error_027_bare_import_error.ts b/cli/tests/095_cache_with_bare_import.ts index c0748305d..c0748305d 100644 --- a/cli/tests/error_027_bare_import_error.ts +++ b/cli/tests/095_cache_with_bare_import.ts diff --git a/cli/tests/095_cache_with_bare_import.ts.out b/cli/tests/095_cache_with_bare_import.ts.out new file mode 100644 index 000000000..f424f4c3e --- /dev/null +++ b/cli/tests/095_cache_with_bare_import.ts.out @@ -0,0 +1 @@ +[WILDCARD]error: Relative import path "foo" not prefixed with / or ./ or ../ from "file:///[WILDCARD]/095_cache_with_bare_import.ts" diff --git a/cli/tests/error_027_bare_import_error.ts.out b/cli/tests/error_027_bare_import_error.ts.out deleted file mode 100644 index b52873d89..000000000 --- a/cli/tests/error_027_bare_import_error.ts.out +++ /dev/null @@ -1,8 +0,0 @@ -[WILDCARD]error: Unable to output bundle during Graph::bundle(). - -Caused by: - 0: load_transformed failed - 1: failed to analyze module - 2: failed to resolve foo from <file:///[WILDCARD]/error_027_bare_import_error.ts> - 3: The graph is missing a dependency. - Specifier: foo from file:///[WILDCARD]/error_027_bare_import_error.ts diff --git a/cli/tests/error_027_bundle_with_bare_import.ts b/cli/tests/error_027_bundle_with_bare_import.ts new file mode 100644 index 000000000..c0748305d --- /dev/null +++ b/cli/tests/error_027_bundle_with_bare_import.ts @@ -0,0 +1 @@ +import "foo"; diff --git a/cli/tests/error_027_bundle_with_bare_import.ts.out b/cli/tests/error_027_bundle_with_bare_import.ts.out new file mode 100644 index 000000000..3aa4a42a2 --- /dev/null +++ b/cli/tests/error_027_bundle_with_bare_import.ts.out @@ -0,0 +1 @@ +[WILDCARD]error: Relative import path "foo" not prefixed with / or ./ or ../ from "file:///[WILDCARD]/error_027_bundle_with_bare_import.ts" diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 5af533dab..6c5626666 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -3139,6 +3139,12 @@ console.log("finish"); exit_code: 1, }); + itest!(_095_cache_with_bare_import { + args: "cache 095_cache_with_bare_import.ts", + output: "095_cache_with_bare_import.ts.out", + exit_code: 1, + }); + itest!(dynamic_import_permissions_remote_remote { args: "run --quiet --reload --allow-net=localhost:4545 dynamic_import/permissions_remote_remote.ts", output: "dynamic_import/permissions_remote_remote.ts.out", @@ -3481,9 +3487,9 @@ console.log("finish"); http_server: true, }); - itest!(error_027_bare_import_error { - args: "bundle error_027_bare_import_error.ts", - output: "error_027_bare_import_error.ts.out", + itest!(error_027_bundle_with_bare_import { + args: "bundle error_027_bundle_with_bare_import.ts", + output: "error_027_bundle_with_bare_import.ts.out", exit_code: 1, }); |