mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
tests: enable package_json_node_modules_none (#25825)
Co-authored-by: David Sherret <dsherret@gmail.com>
This commit is contained in:
parent
edac916604
commit
7b509e492e
8 changed files with 19 additions and 20 deletions
|
@ -18,19 +18,6 @@
|
|||
// http_server: true,
|
||||
// });
|
||||
|
||||
// TODO(2.0): decide what to do with this test
|
||||
// should not auto-install the packages in the package.json
|
||||
// when using nodeModulesDir: false
|
||||
// itest!(task_package_json_node_modules_dir_false {
|
||||
// args: "task echo",
|
||||
// cwd: Some("task/package_json_node_modules_dir_false/"),
|
||||
// output: "task/package_json_node_modules_dir_false/bin.out",
|
||||
// copy_temp_dir: Some("task/package_json_node_modules_dir_false/"),
|
||||
// envs: env_vars_for_npm_tests(),
|
||||
// exit_code: 0,
|
||||
// http_server: true,
|
||||
// });
|
||||
|
||||
// TODO(2.0): not entirely clear what's wrong with this test but it hangs for more than 60s
|
||||
// itest!(task_npx_on_own {
|
||||
// args: "task on-own",
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"tempDir": true,
|
||||
"args": "task echo",
|
||||
"output": "bin.out",
|
||||
"exitCode": 0
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
[UNORDERED_START]
|
||||
Download http://localhost:4260/@denotest/bin
|
||||
Download http://localhost:4260/@denotest/bin/1.0.0.tgz
|
||||
Download http://localhost:4260/@denotest/bin/0.5.0.tgz
|
||||
[UNORDERED_END]
|
||||
Task echo deno eval 'console.log(1)' && cli-esm hi
|
||||
1
|
||||
hi
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"nodeModulesDir": "none"
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"scripts": {
|
||||
"echo": "deno eval 'console.log(1)'"
|
||||
"echo": "deno eval 'console.log(1)' && cli-esm hi"
|
||||
},
|
||||
"dependencies": {
|
||||
"@denotest/bin": "0.5",
|
|
@ -1,2 +0,0 @@
|
|||
Task echo deno eval 'console.log(1)'
|
||||
1
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"nodeModulesDir": false
|
||||
}
|
|
@ -220,7 +220,7 @@ async function ensureNoNewITests() {
|
|||
"repl_tests.rs": 0,
|
||||
"run_tests.rs": 331,
|
||||
"shared_library_tests.rs": 0,
|
||||
"task_tests.rs": 3,
|
||||
"task_tests.rs": 2,
|
||||
"test_tests.rs": 0,
|
||||
"upgrade_tests.rs": 0,
|
||||
"vendor_tests.rs": 1,
|
||||
|
|
Loading…
Reference in a new issue