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.
TypeScript
123456789101112export function plus(a: number, b: number) { return a + b}
if (import.meta.vitest) { const { test, expect } = import.meta.vitest
test('in-source plus works correctly', () => { expect(plus(1, 2)).toBe(3) })}