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.
479 B · 29 lines
TypeScript
123456789101112131415161718192021222324252627282930/* eslint-disable unused-imports/no-unused-vars -- intentional */export function add(a: number, b: number) { /** * Multi * line * comment */ if (a === 2 && b === 3) { // This line should NOT be covered return 5 }
type TypescriptTypings = 1 | 2
if (a === 1 && b === 1) { // This line should NOT be covered return 2 }
interface MoreCompileTimeCode { should: { be: { excluded: true } } }
return a + b}