diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-12-09 23:55:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 23:55:03 +0100 |
commit | 6794d9fe5d3d401e6e5795a502f8d1ee63fb796b (patch) | |
tree | 21f5075009eaadce19432e014c022c64d962060c /cli/tests/init_tests.rs | |
parent | 653aebfa1aa9121070df98ee88474b5f821fb15d (diff) |
feat(init): Use jsonc for configuration file (#17002)
Generate "deno.jsonc" instead of "deno.json" when running "deno init"
subcommand.
Diffstat (limited to 'cli/tests/init_tests.rs')
-rw-r--r-- | cli/tests/init_tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/init_tests.rs b/cli/tests/init_tests.rs index f4df2aa84..a85966f3c 100644 --- a/cli/tests/init_tests.rs +++ b/cli/tests/init_tests.rs @@ -31,7 +31,7 @@ mod init { assert_contains!(stderr, "deno task dev"); assert_contains!(stderr, "deno test"); - assert!(cwd.join("deno.json").exists()); + assert!(cwd.join("deno.jsonc").exists()); let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir); let output = deno_cmd @@ -86,7 +86,7 @@ mod init { assert_contains!(stderr, "deno task dev"); assert_contains!(stderr, "deno test"); - assert!(cwd.join("my_dir/deno.json").exists()); + assert!(cwd.join("my_dir/deno.jsonc").exists()); let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir); let output = deno_cmd @@ -137,7 +137,7 @@ mod init { assert!(output.status.success()); let stdout = String::from_utf8(output.stdout).unwrap(); assert_eq!(stdout, ""); - assert!(cwd.join("deno.json").exists()); + assert!(cwd.join("deno.jsonc").exists()); let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir); let output = deno_cmd |