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.
12345678910111213141516171819import { assert, describe, expect, it, vi } from 'vitest'
describe('suite name', () => { it('foo', () => { vi.resetModules() // a comment here // another comment // another comment // another comment // another comment // another comment // this will mess up the stacktrace lines expect(1 + 1).eq(2) expect(2 + 1).eq(3) assert.equal(Math.sqrt(4), 2) expect(Math.sqrt(4)).toBe(1) })})