summaryrefslogtreecommitdiff
path: root/cli/tests/lib_runtime_api.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/lib_runtime_api.ts')
-rw-r--r--cli/tests/lib_runtime_api.ts16
1 files changed, 9 insertions, 7 deletions
diff --git a/cli/tests/lib_runtime_api.ts b/cli/tests/lib_runtime_api.ts
index fc00825e9..450d9480b 100644
--- a/cli/tests/lib_runtime_api.ts
+++ b/cli/tests/lib_runtime_api.ts
@@ -1,12 +1,14 @@
-const [errors, program] = await Deno.compile(
+const { diagnostics, files } = await Deno.emit(
"/main.ts",
{
- "/main.ts": `document.getElementById("foo");`,
- },
- {
- lib: ["dom", "esnext"],
+ sources: {
+ "/main.ts": `document.getElementById("foo");`,
+ },
+ compilerOptions: {
+ lib: ["dom", "esnext"],
+ },
},
);
-console.log(errors);
-console.log(Object.keys(program).sort());
+console.log(diagnostics);
+console.log(Object.keys(files).sort());