Install package:
pnpm add @fethcat/tests
Install peerDependencies:
pnpm add vitest @vitest/coverage-v8
Define test config:
import { defineTestConfig } from '@fethcat/tests'
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: defineTestConfig(),
})
Define custom test config:
import { defineTestConfig } from '@fethcat/tests'
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: defineTestConfig({
setupFiles: [],
}),
})
Available configurations: https://vitest.dev/config/