/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/testdata/coverage/multisource/test.ts
26 строк
539 B
Yoshiya Hinosawa
fix(coverage): do not generate script coverage with empty url (#24007)
28 май 2024, 17:01
Не верифицирован
28 май 2024, 17:01
8b5089e
Код
Авторство
О чём код?
import { foo } from "./foo.ts"; import { bar } from "./bar.ts"; import { qux } from "./baz/qux.ts"; import { quux } from "./baz/quux.ts"; Deno.test("foo", () => { foo(true); foo(false); }); Deno.test("bar", () => { bar(false); }); Deno.test("qux", () => { qux(true); qux(false); }); Deno.test("quux", () => { quux(false); }); // Function constructor or eval function generates a new script source internally. // This call ensures that the coverage data for the eval script source is not generated. eval("console.log(1)");