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
1234567891011121314151617import { expect, it } from 'vitest'
it('basic', async () => { expect(globalThis.performance).toBeDefined()})
it('basic 2', () => { expect(globalThis.window).toBeDefined()})
it.each([ ['x', true], ['y', false],])('%s is x', (val, expectedResult) => { expect(val === 'x').toBe(expectedResult)})