From 0df193a9115930d1911266d05a985e2a976f7d62 Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Sun, 12 Feb 2023 01:10:13 +0100 Subject: [PATCH] Use triple-slash directives for worker.ts rather than `--no-check` --- cli/tests/integration/compile_tests.rs | 1 - cli/tests/testdata/compile/workers/worker.ts | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/tests/integration/compile_tests.rs b/cli/tests/integration/compile_tests.rs index bd8ee4d3ebb086..9a88f4b332fb91 100644 --- a/cli/tests/integration/compile_tests.rs +++ b/cli/tests/integration/compile_tests.rs @@ -634,7 +634,6 @@ fn workers_side_modules() { let output = util::deno_cmd() .current_dir(util::root_path()) .arg("compile") - .arg("--no-check") .arg("--side-module") .arg(util::testdata_path().join("./compile/workers/worker.ts")) .arg("--output") diff --git a/cli/tests/testdata/compile/workers/worker.ts b/cli/tests/testdata/compile/workers/worker.ts index f50a2f2a6422d5..a1c357ab1e49bf 100644 --- a/cli/tests/testdata/compile/workers/worker.ts +++ b/cli/tests/testdata/compile/workers/worker.ts @@ -1,3 +1,6 @@ +/// +/// + if (import.meta.main) { console.log("Hello from worker!");