Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
589 B · 30 lines
TypeScript
at v1
12345678910111213141516171819202122232425262728293031export function add(a: number, b: number) { return a + b}
export function multiply(a: number, b: number) { return a * b}
export function divide(a: number, b: number) { // this should not be covered return a / b}
export function sqrt(a: number) { if (a < 0) return Number.NaN // This should not be covered
return Math.sqrt(a)}
export function run() { // this should not be covered divide(1, 1)}
/* v8 ignore next 4 *//* istanbul ignore next -- @preserve */export function ignoredFunction() { throw new Error('Test files should not call this function!')}