diff options
Diffstat (limited to 'cli/tests/testdata/run/with_package_json')
15 files changed, 0 insertions, 80 deletions
diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/main.out b/cli/tests/testdata/run/with_package_json/no_deno_json/main.out deleted file mode 100644 index 402b30ed4..000000000 --- a/cli/tests/testdata/run/with_package_json/no_deno_json/main.out +++ /dev/null @@ -1,4 +0,0 @@ -[WILDCARD]package.json file found at '[WILDCARD]with_package_json[WILDCARD]no_deno_json[WILDCARD]package.json' -[WILDCARD] -ok -[Function (anonymous)] Chalk [WILDCARD] diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/main.ts b/cli/tests/testdata/run/with_package_json/no_deno_json/main.ts deleted file mode 100644 index 1e6e50040..000000000 --- a/cli/tests/testdata/run/with_package_json/no_deno_json/main.ts +++ /dev/null @@ -1,4 +0,0 @@ -import chalk from "chalk"; - -console.log("ok"); -console.log(chalk); diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/no_package_json_imports.out b/cli/tests/testdata/run/with_package_json/no_deno_json/no_package_json_imports.out deleted file mode 100644 index 7ed6ff82d..000000000 --- a/cli/tests/testdata/run/with_package_json/no_deno_json/no_package_json_imports.out +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/no_package_json_imports.ts b/cli/tests/testdata/run/with_package_json/no_deno_json/no_package_json_imports.ts deleted file mode 100644 index 0f3785f91..000000000 --- a/cli/tests/testdata/run/with_package_json/no_deno_json/no_package_json_imports.ts +++ /dev/null @@ -1 +0,0 @@ -console.log(5); diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.out b/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.out deleted file mode 100644 index b9f9a6dea..000000000 --- a/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.out +++ /dev/null @@ -1,4 +0,0 @@ -[WILDCARD]package.json auto-discovery is disabled -[WILDCARD] -success -[WILDCARD] diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.ts b/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.ts deleted file mode 100644 index 73b348fbc..000000000 --- a/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.ts +++ /dev/null @@ -1,8 +0,0 @@ -// ensure the cwd is this directory -const cwd = Deno.cwd(); -if (!cwd.endsWith("no_deno_json")) { - console.log(cwd); - throw "FAIL"; -} else { - console.log("success"); -} diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/package.json b/cli/tests/testdata/run/with_package_json/no_deno_json/package.json deleted file mode 100644 index a85b890a8..000000000 --- a/cli/tests/testdata/run/with_package_json/no_deno_json/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "dependencies": { - "@denotest/check-error": "1.0.0", - "chalk": "4" - }, - "devDependencies": { - "@denotest/cjs-default-export": "1.0.0" - } -} diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/sub_dir/main.js b/cli/tests/testdata/run/with_package_json/no_deno_json/sub_dir/main.js deleted file mode 100644 index 492a8fa40..000000000 --- a/cli/tests/testdata/run/with_package_json/no_deno_json/sub_dir/main.js +++ /dev/null @@ -1,3 +0,0 @@ -import "chalk"; -console.log(Deno.cwd()); -console.log(Deno.statSync("../node_modules")); diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/sub_dir/main.out b/cli/tests/testdata/run/with_package_json/no_deno_json/sub_dir/main.out deleted file mode 100644 index 0ec791960..000000000 --- a/cli/tests/testdata/run/with_package_json/no_deno_json/sub_dir/main.out +++ /dev/null @@ -1,7 +0,0 @@ -Download http://[WILDCARD] -[WILDCARD]sub_dir -{ - [WILDCARD] - isDirectory: true, - [WILDCARD] -} diff --git a/cli/tests/testdata/run/with_package_json/npm_binary/main.out b/cli/tests/testdata/run/with_package_json/npm_binary/main.out deleted file mode 100644 index 13d196a5e..000000000 --- a/cli/tests/testdata/run/with_package_json/npm_binary/main.out +++ /dev/null @@ -1,7 +0,0 @@ -[WILDCARD]package.json file found at '[WILDCARD]with_package_json[WILDCARD]npm_binary[WILDCARD]package.json' -[WILDCARD] -this -is -a -test -[WILDCARD] diff --git a/cli/tests/testdata/run/with_package_json/npm_binary/package.json b/cli/tests/testdata/run/with_package_json/npm_binary/package.json deleted file mode 100644 index 9ee3f39a8..000000000 --- a/cli/tests/testdata/run/with_package_json/npm_binary/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "dependencies": { - "@denotest/check-error": "1.0.0" - }, - "devDependencies": { - "@denotest/cjs-default-export": "1.0.0" - } -} diff --git a/cli/tests/testdata/run/with_package_json/with_stop/main.out b/cli/tests/testdata/run/with_package_json/with_stop/main.out deleted file mode 100644 index b199faf8d..000000000 --- a/cli/tests/testdata/run/with_package_json/with_stop/main.out +++ /dev/null @@ -1,5 +0,0 @@ -[WILDCARD]Config file found at '[WILDCARD]with_package_json[WILDCARD]with_stop[WILDCARD]some[WILDCARD]nested[WILDCARD]deno.json' -[WILDCARD]No package.json file found -[WILDCARD] -error: Relative import path "chalk" not prefixed with / or ./ or ../ - at file:///[WILDCARD]with_package_json/with_stop/some/nested/dir/main.ts:3:19 diff --git a/cli/tests/testdata/run/with_package_json/with_stop/package.json b/cli/tests/testdata/run/with_package_json/with_stop/package.json deleted file mode 100644 index 9ee3f39a8..000000000 --- a/cli/tests/testdata/run/with_package_json/with_stop/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "dependencies": { - "@denotest/check-error": "1.0.0" - }, - "devDependencies": { - "@denotest/cjs-default-export": "1.0.0" - } -} diff --git a/cli/tests/testdata/run/with_package_json/with_stop/some/nested/deno.json b/cli/tests/testdata/run/with_package_json/with_stop/some/nested/deno.json deleted file mode 100644 index 36e1765d1..000000000 --- a/cli/tests/testdata/run/with_package_json/with_stop/some/nested/deno.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tasks": { - "dev": "deno run main.ts" - } -} diff --git a/cli/tests/testdata/run/with_package_json/with_stop/some/nested/dir/main.ts b/cli/tests/testdata/run/with_package_json/with_stop/some/nested/dir/main.ts deleted file mode 100644 index 6016470a1..000000000 --- a/cli/tests/testdata/run/with_package_json/with_stop/some/nested/dir/main.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This import should fail, because `package.json` is not discovered, as we're -// stopping the discovery when encountering `deno.json`. -import chalk from "chalk"; - -console.log("ok"); -console.log(chalk); |
