diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tests/integration/check_tests.rs | 29 | ||||
-rw-r--r-- | cli/tests/unit/stat_test.ts | 8 |
2 files changed, 4 insertions, 33 deletions
diff --git a/cli/tests/integration/check_tests.rs b/cli/tests/integration/check_tests.rs index 41c568ad3..ab17713f2 100644 --- a/cli/tests/integration/check_tests.rs +++ b/cli/tests/integration/check_tests.rs @@ -195,35 +195,6 @@ fn typecheck_declarations_unstable() { } #[test] -fn typecheck_core() { - let context = TestContext::default(); - let deno_dir = context.deno_dir(); - let test_file = deno_dir.path().join("test_deno_core_types.ts"); - std::fs::write( - &test_file, - format!( - "import \"{}\";", - deno_core::resolve_path( - &util::root_path() - .join("core") - .join("lib.deno_core.d.ts") - .to_string(), - &std::env::current_dir().unwrap() - ) - .unwrap() - ), - ) - .unwrap(); - - let args = vec!["run".to_string(), test_file.to_string()]; - let output = context.new_command().args_vec(args).split_output().run(); - - println!("stdout: {}", output.stdout()); - println!("stderr: {}", output.stderr()); - output.assert_exit_code(0); -} - -#[test] fn ts_no_recheck_on_redirect() { let test_context = TestContext::default(); let check_command = test_context.new_command().args_vec([ diff --git a/cli/tests/unit/stat_test.ts b/cli/tests/unit/stat_test.ts index 69730d439..75693541d 100644 --- a/cli/tests/unit/stat_test.ts +++ b/cli/tests/unit/stat_test.ts @@ -135,11 +135,11 @@ Deno.test({ permissions: { read: true } }, function lstatSyncSuccess() { assert(!modulesInfoByUrl.isDirectory); assert(modulesInfoByUrl.isSymlink); - const coreInfo = Deno.lstatSync("core"); + const coreInfo = Deno.lstatSync("cli"); assert(coreInfo.isDirectory); assert(!coreInfo.isSymlink); - const coreInfoByUrl = Deno.lstatSync(pathToAbsoluteFileUrl("core")); + const coreInfoByUrl = Deno.lstatSync(pathToAbsoluteFileUrl("cli")); assert(coreInfoByUrl.isDirectory); assert(!coreInfoByUrl.isSymlink); }); @@ -261,11 +261,11 @@ Deno.test({ permissions: { read: true } }, async function lstatSuccess() { assert(!modulesInfoByUrl.isDirectory); assert(modulesInfoByUrl.isSymlink); - const coreInfo = await Deno.lstat("core"); + const coreInfo = await Deno.lstat("cli"); assert(coreInfo.isDirectory); assert(!coreInfo.isSymlink); - const coreInfoByUrl = await Deno.lstat(pathToAbsoluteFileUrl("core")); + const coreInfoByUrl = await Deno.lstat(pathToAbsoluteFileUrl("cli")); assert(coreInfoByUrl.isDirectory); assert(!coreInfoByUrl.isSymlink); }); |