summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-07-01 18:00:14 -0600
committerGitHub <noreply@github.com>2023-07-02 00:00:14 +0000
commite746b6d80654ba4e4e26370fe6e4f784ce841d92 (patch)
tree153ffad92a96126b9ab8e906dcdabf7648755931 /cli/tests
parentb9c0e7cd550ab14fa7da7e33ed87cbeeeb9785a0 (diff)
refactor(core): Extract deno_core (#19658)
`deno_core` is moving out! You'll find it at https://github.com/denoland/deno_core/ once this PR lands.
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/check_tests.rs29
-rw-r--r--cli/tests/unit/stat_test.ts8
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);
});