summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/doc/import_map.json (renamed from cli/tests/doc/importmap.json)0
-rw-r--r--cli/tests/doc/use_import_map.js (renamed from cli/tests/doc/use_importmap.js)0
-rw-r--r--cli/tests/doc/use_import_map.out (renamed from cli/tests/doc/use_importmap.out)0
-rw-r--r--cli/tests/import_map_no_unstable.out1
-rw-r--r--cli/tests/import_maps/import_map.json (renamed from cli/tests/importmaps/import_map.json)0
-rw-r--r--cli/tests/import_maps/lodash/lodash.ts (renamed from cli/tests/importmaps/lodash/lodash.ts)0
-rw-r--r--cli/tests/import_maps/lodash/other_file.ts (renamed from cli/tests/importmaps/lodash/other_file.ts)0
-rw-r--r--cli/tests/import_maps/moment/moment.ts (renamed from cli/tests/importmaps/moment/moment.ts)0
-rw-r--r--cli/tests/import_maps/moment/other_file.ts (renamed from cli/tests/importmaps/moment/other_file.ts)0
-rw-r--r--cli/tests/import_maps/scope/scoped.ts (renamed from cli/tests/importmaps/scope/scoped.ts)0
-rw-r--r--cli/tests/import_maps/scoped_moment.ts (renamed from cli/tests/importmaps/scoped_moment.ts)0
-rw-r--r--cli/tests/import_maps/test.ts (renamed from cli/tests/importmaps/test.ts)0
-rw-r--r--cli/tests/import_maps/vue.ts (renamed from cli/tests/importmaps/vue.ts)0
-rw-r--r--cli/tests/integration_tests.rs14
14 files changed, 8 insertions, 7 deletions
diff --git a/cli/tests/doc/importmap.json b/cli/tests/doc/import_map.json
index 244a30296..244a30296 100644
--- a/cli/tests/doc/importmap.json
+++ b/cli/tests/doc/import_map.json
diff --git a/cli/tests/doc/use_importmap.js b/cli/tests/doc/use_import_map.js
index 672a7a7bd..672a7a7bd 100644
--- a/cli/tests/doc/use_importmap.js
+++ b/cli/tests/doc/use_import_map.js
diff --git a/cli/tests/doc/use_importmap.out b/cli/tests/doc/use_import_map.out
index 0b27ccf18..0b27ccf18 100644
--- a/cli/tests/doc/use_importmap.out
+++ b/cli/tests/doc/use_import_map.out
diff --git a/cli/tests/import_map_no_unstable.out b/cli/tests/import_map_no_unstable.out
new file mode 100644
index 000000000..4f202613e
--- /dev/null
+++ b/cli/tests/import_map_no_unstable.out
@@ -0,0 +1 @@
+Unstable API '--import-map'. The --unstable flag must be provided.
diff --git a/cli/tests/importmaps/import_map.json b/cli/tests/import_maps/import_map.json
index 601874aab..601874aab 100644
--- a/cli/tests/importmaps/import_map.json
+++ b/cli/tests/import_maps/import_map.json
diff --git a/cli/tests/importmaps/lodash/lodash.ts b/cli/tests/import_maps/lodash/lodash.ts
index 2ec04ed3c..2ec04ed3c 100644
--- a/cli/tests/importmaps/lodash/lodash.ts
+++ b/cli/tests/import_maps/lodash/lodash.ts
diff --git a/cli/tests/importmaps/lodash/other_file.ts b/cli/tests/import_maps/lodash/other_file.ts
index 714adae3f..714adae3f 100644
--- a/cli/tests/importmaps/lodash/other_file.ts
+++ b/cli/tests/import_maps/lodash/other_file.ts
diff --git a/cli/tests/importmaps/moment/moment.ts b/cli/tests/import_maps/moment/moment.ts
index 2b54a431e..2b54a431e 100644
--- a/cli/tests/importmaps/moment/moment.ts
+++ b/cli/tests/import_maps/moment/moment.ts
diff --git a/cli/tests/importmaps/moment/other_file.ts b/cli/tests/import_maps/moment/other_file.ts
index 24f3a0226..24f3a0226 100644
--- a/cli/tests/importmaps/moment/other_file.ts
+++ b/cli/tests/import_maps/moment/other_file.ts
diff --git a/cli/tests/importmaps/scope/scoped.ts b/cli/tests/import_maps/scope/scoped.ts
index 9a0b5d8e3..9a0b5d8e3 100644
--- a/cli/tests/importmaps/scope/scoped.ts
+++ b/cli/tests/import_maps/scope/scoped.ts
diff --git a/cli/tests/importmaps/scoped_moment.ts b/cli/tests/import_maps/scoped_moment.ts
index 9f67f88d4..9f67f88d4 100644
--- a/cli/tests/importmaps/scoped_moment.ts
+++ b/cli/tests/import_maps/scoped_moment.ts
diff --git a/cli/tests/importmaps/test.ts b/cli/tests/import_maps/test.ts
index 9b09e9953..9b09e9953 100644
--- a/cli/tests/importmaps/test.ts
+++ b/cli/tests/import_maps/test.ts
diff --git a/cli/tests/importmaps/vue.ts b/cli/tests/import_maps/vue.ts
index 76dbe1917..76dbe1917 100644
--- a/cli/tests/importmaps/vue.ts
+++ b/cli/tests/import_maps/vue.ts
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 0c11ea75e..f7edf5a42 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -1059,7 +1059,7 @@ fn bundle_import_map() {
let mut deno = util::deno_cmd()
.current_dir(util::root_path())
.arg("bundle")
- .arg("--importmap")
+ .arg("--import-map")
.arg(import_map_path)
.arg("--unstable")
.arg(import)
@@ -1957,7 +1957,7 @@ itest!(_031_info_ts_error {
itest!(_033_import_map {
args:
- "run --quiet --reload --importmap=importmaps/import_map.json --unstable importmaps/test.ts",
+ "run --quiet --reload --import-map=import_maps/import_map.json --unstable import_maps/test.ts",
output: "033_import_map.out",
});
@@ -1976,7 +1976,7 @@ itest!(_035_cached_only_flag {
itest!(_036_import_map_fetch {
args:
- "cache --quiet --reload --importmap=importmaps/import_map.json --unstable importmaps/test.ts",
+ "cache --quiet --reload --import-map=import_maps/import_map.json --unstable import_maps/test.ts",
output: "036_import_map_fetch.out",
});
@@ -2121,7 +2121,7 @@ itest!(_064_permissions_revoke_global {
itest!(_065_import_map_info {
args:
- "info --quiet --importmap=importmaps/import_map.json --unstable importmaps/test.ts",
+ "info --quiet --import-map=import_maps/import_map.json --unstable import_maps/test.ts",
output: "065_import_map_info.out",
});
@@ -2886,9 +2886,9 @@ itest!(deno_doc {
output: "deno_doc.out",
});
-itest!(deno_doc_importmap {
- args: "doc --unstable --importmap=doc/importmap.json doc/use_importmap.js",
- output: "doc/use_importmap.out",
+itest!(deno_doc_import_map {
+ args: "doc --unstable --import-map=doc/import_map.json doc/use_import_map.js",
+ output: "doc/use_import_map.out",
});
itest!(compiler_js_error {