Skip to content

Commit

Permalink
test: add setImmediate polyfill for deno
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Oct 17, 2024
1 parent b682547 commit 61c8edc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/smoke/invoke.test.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import assert from 'node:assert'
import { zurk, $ } from '../../../target/esm/index.mjs'

if (globalThis.Deno)
globalThis.setImmediate = (cb) => setTimeout(cb, 0)

const keepAlive = setInterval(() => {}, 1000 * 60 * 60)

const r1 = zurk({ sync: true, cmd: 'echo', args: ['foo'] })
Expand Down

0 comments on commit 61c8edc

Please sign in to comment.