mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
8 lines
214 B
TypeScript
8 lines
214 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { counter } from './counter'
|
|
|
|
test('make sure the counter is reset by the setup file beforeEach hook', () => {
|
|
counter.increment()
|
|
expect(counter.get()).toBe(1)
|
|
});
|