summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/cache/json_import/main.ts2
-rw-r--r--tests/specs/run/ts_import_assertions/__test__.jsonc2
-rw-r--r--tests/specs/run/ts_import_assertions/assertion.out10
3 files changed, 4 insertions, 10 deletions
diff --git a/tests/specs/cache/json_import/main.ts b/tests/specs/cache/json_import/main.ts
index 78273558f..d7506963b 100644
--- a/tests/specs/cache/json_import/main.ts
+++ b/tests/specs/cache/json_import/main.ts
@@ -1,2 +1,2 @@
-import asdf from "./test.json" assert { type: "json" };
+import asdf from "./test.json" with { type: "json" };
console.log(asdf);
diff --git a/tests/specs/run/ts_import_assertions/__test__.jsonc b/tests/specs/run/ts_import_assertions/__test__.jsonc
index dc5576bd1..5d8110ae2 100644
--- a/tests/specs/run/ts_import_assertions/__test__.jsonc
+++ b/tests/specs/run/ts_import_assertions/__test__.jsonc
@@ -3,10 +3,12 @@
"assertion": {
"steps": [{
"args": "run assertion.ts",
+ "exitCode": 1,
"output": "assertion.out"
}, {
// should output the same because the emit won't be cached
"args": "run assertion.ts",
+ "exitCode": 1,
"output": "assertion.out"
}]
},
diff --git a/tests/specs/run/ts_import_assertions/assertion.out b/tests/specs/run/ts_import_assertions/assertion.out
index 3cc900d64..3ca7ac8ae 100644
--- a/tests/specs/run/ts_import_assertions/assertion.out
+++ b/tests/specs/run/ts_import_assertions/assertion.out
@@ -1,14 +1,6 @@
-⚠️ Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.
+error: Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.
import test from "./data.json" assert { type: "json" };
at file:///[WILDLINE]/assertion.ts:1:1
-{ prop: "data" }
-⚠️ Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.
-
-console.log((await import("./data.json", {
-
- at file:///[WILDLINE]/assertion.ts:5:13
-
-{ prop: "data" }