/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/specs/test/timeout/sync_hot_loop.ts
11 строк
272 B
Hunnyboy1217
feat(test): add timeout option to Deno.test() (#33815)
07 май 2026, 13:01
Не верифицирован
07 май 2026, 13:01
3a76e62
Код
Авторство
О чём код?
// Proof that v8::TerminateExecution interrupts a synchronous hot loop — // the second test must still run after the first is killed. Deno.test({ name: "spins forever", timeout: 100, fn() { while (true) {} }, }); Deno.test("runs after the spin", () => {});