diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-09-16 21:05:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-16 21:05:14 -0400 |
| commit | 9cfdc60a23e6418d4780dc3ebd6266248555bb03 (patch) | |
| tree | 19ca25fa733318024d1f36724a2c20741e649012 /cli/tests/importmaps | |
| parent | 02cb34d8ad320360c800b9af7b941990c48b9742 (diff) | |
Move integration tests to //cli/tests/ (#2964)
This ensures the deno executable is properly created before running the integration tests.
Also allows deno_cli to be used as a lib. Docs are now properly generated: https://docs.rs/deno_cli/0.18.4/deno_cli/
Towards #2933
Prep for #2955
Diffstat (limited to 'cli/tests/importmaps')
| -rw-r--r-- | cli/tests/importmaps/import_map.json | 14 | ||||
| -rw-r--r-- | cli/tests/importmaps/lodash/lodash.ts | 1 | ||||
| -rw-r--r-- | cli/tests/importmaps/lodash/other_file.ts | 1 | ||||
| -rw-r--r-- | cli/tests/importmaps/moment/moment.ts | 1 | ||||
| -rw-r--r-- | cli/tests/importmaps/moment/other_file.ts | 1 | ||||
| -rw-r--r-- | cli/tests/importmaps/scope/scoped.ts | 2 | ||||
| -rw-r--r-- | cli/tests/importmaps/scoped_moment.ts | 1 | ||||
| -rw-r--r-- | cli/tests/importmaps/test.ts | 6 | ||||
| -rw-r--r-- | cli/tests/importmaps/vue.ts | 1 |
9 files changed, 28 insertions, 0 deletions
diff --git a/cli/tests/importmaps/import_map.json b/cli/tests/importmaps/import_map.json new file mode 100644 index 000000000..601874aab --- /dev/null +++ b/cli/tests/importmaps/import_map.json @@ -0,0 +1,14 @@ +{ + "imports": { + "moment": "./moment/moment.ts", + "moment/": "./moment/", + "lodash": "./lodash/lodash.ts", + "lodash/": "./lodash/", + "https://www.unpkg.com/vue/dist/vue.runtime.esm.js": "./vue.ts" + }, + "scopes": { + "scope/": { + "moment": "./scoped_moment.ts" + } + } +} diff --git a/cli/tests/importmaps/lodash/lodash.ts b/cli/tests/importmaps/lodash/lodash.ts new file mode 100644 index 000000000..2ec04ed3c --- /dev/null +++ b/cli/tests/importmaps/lodash/lodash.ts @@ -0,0 +1 @@ +console.log("Hello from remapped lodash!"); diff --git a/cli/tests/importmaps/lodash/other_file.ts b/cli/tests/importmaps/lodash/other_file.ts new file mode 100644 index 000000000..714adae3f --- /dev/null +++ b/cli/tests/importmaps/lodash/other_file.ts @@ -0,0 +1 @@ +console.log("Hello from remapped lodash dir!"); diff --git a/cli/tests/importmaps/moment/moment.ts b/cli/tests/importmaps/moment/moment.ts new file mode 100644 index 000000000..2b54a431e --- /dev/null +++ b/cli/tests/importmaps/moment/moment.ts @@ -0,0 +1 @@ +console.log("Hello from remapped moment!"); diff --git a/cli/tests/importmaps/moment/other_file.ts b/cli/tests/importmaps/moment/other_file.ts new file mode 100644 index 000000000..24f3a0226 --- /dev/null +++ b/cli/tests/importmaps/moment/other_file.ts @@ -0,0 +1 @@ +console.log("Hello from remapped moment dir!"); diff --git a/cli/tests/importmaps/scope/scoped.ts b/cli/tests/importmaps/scope/scoped.ts new file mode 100644 index 000000000..9a0b5d8e3 --- /dev/null +++ b/cli/tests/importmaps/scope/scoped.ts @@ -0,0 +1,2 @@ +import "moment"; +console.log("Hello from scoped!"); diff --git a/cli/tests/importmaps/scoped_moment.ts b/cli/tests/importmaps/scoped_moment.ts new file mode 100644 index 000000000..9f67f88d4 --- /dev/null +++ b/cli/tests/importmaps/scoped_moment.ts @@ -0,0 +1 @@ +console.log("Hello from scoped moment!"); diff --git a/cli/tests/importmaps/test.ts b/cli/tests/importmaps/test.ts new file mode 100644 index 000000000..9b09e9953 --- /dev/null +++ b/cli/tests/importmaps/test.ts @@ -0,0 +1,6 @@ +import "moment"; +import "moment/other_file.ts"; +import "lodash"; +import "lodash/other_file.ts"; +import "https://www.unpkg.com/vue/dist/vue.runtime.esm.js"; +import "./scope/scoped.ts"; diff --git a/cli/tests/importmaps/vue.ts b/cli/tests/importmaps/vue.ts new file mode 100644 index 000000000..76dbe1917 --- /dev/null +++ b/cli/tests/importmaps/vue.ts @@ -0,0 +1 @@ +console.log("Hello from remapped Vue!"); |
