Skip to content

Commit

Permalink
Use triple-slash directives for worker.ts rather than --no-check
Browse files Browse the repository at this point in the history
  • Loading branch information
andreubotella committed Feb 12, 2023
1 parent da2941e commit 0df193a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion cli/tests/integration/compile_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 3 additions & 0 deletions cli/tests/testdata/compile/workers/worker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/// <reference no-default-lib="true" />
/// <reference lib="deno.worker" />

if (import.meta.main) {
console.log("Hello from worker!");

Expand Down

0 comments on commit 0df193a

Please sign in to comment.