From decdc59071482dd130ee73cb6e011412ea1f3e75 Mon Sep 17 00:00:00 2001 From: Mark Ladyshau <47859603+mrkldshv@users.noreply.github.com> Date: Mon, 13 Jun 2022 20:09:04 +0200 Subject: fix(cli): add config flag to `deno info` (#14706) --- cli/tests/testdata/info/with_config/deno-override.json | 3 +++ cli/tests/testdata/info/with_config/deno.json | 1 + cli/tests/testdata/info/with_config/import_map.json | 1 + cli/tests/testdata/info/with_config/test.ts | 1 + cli/tests/testdata/info/with_config/with_config.out | 6 ++++++ 5 files changed, 12 insertions(+) create mode 100644 cli/tests/testdata/info/with_config/deno-override.json create mode 100644 cli/tests/testdata/info/with_config/deno.json create mode 100644 cli/tests/testdata/info/with_config/import_map.json create mode 100644 cli/tests/testdata/info/with_config/test.ts create mode 100644 cli/tests/testdata/info/with_config/with_config.out (limited to 'cli/tests/testdata/info') diff --git a/cli/tests/testdata/info/with_config/deno-override.json b/cli/tests/testdata/info/with_config/deno-override.json new file mode 100644 index 000000000..ee44ba947 --- /dev/null +++ b/cli/tests/testdata/info/with_config/deno-override.json @@ -0,0 +1,3 @@ +{ + "importMap": "import_map.json" +} diff --git a/cli/tests/testdata/info/with_config/deno.json b/cli/tests/testdata/info/with_config/deno.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/cli/tests/testdata/info/with_config/deno.json @@ -0,0 +1 @@ +{} diff --git a/cli/tests/testdata/info/with_config/import_map.json b/cli/tests/testdata/info/with_config/import_map.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/cli/tests/testdata/info/with_config/import_map.json @@ -0,0 +1 @@ +{} diff --git a/cli/tests/testdata/info/with_config/test.ts b/cli/tests/testdata/info/with_config/test.ts new file mode 100644 index 000000000..85ce559e8 --- /dev/null +++ b/cli/tests/testdata/info/with_config/test.ts @@ -0,0 +1 @@ +console.log("foo"); diff --git a/cli/tests/testdata/info/with_config/with_config.out b/cli/tests/testdata/info/with_config/with_config.out new file mode 100644 index 000000000..b707c24d0 --- /dev/null +++ b/cli/tests/testdata/info/with_config/with_config.out @@ -0,0 +1,6 @@ +Warning the configuration file "[WILDCARD]/deno-override.json" contains an entry for "importMap" that is being ignored. +local: [WILDCARD]test.ts +type: TypeScript +dependencies: 0 unique (total [WILDCARD]) + +file:///[WILDCARD]/test.ts ([WILDCARD]) -- cgit v1.2.3