Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/jotai/vitest.config.ts

👻 Primitive and flexible state management for React
Go to Latest
File
// eslint-disable-next-line import/extensionsimport { defineConfig } from 'vitest/config'
export default defineConfig({ resolve: { alias: [ { find: /^jotai$/, replacement: './src/index.ts' }, { find: /^jotai(.*)$/, replacement: './src/$1.ts' }, ], }, test: { name: 'jotai', // Keeping globals to true triggers React Testing Library's auto cleanup // https://vitest.dev/guide/migration.html globals: true, environment: 'jsdom', dir: 'tests', reporters: 'basic', coverage: { reporter: ['text', 'json', 'html', 'text-summary'], reportsDirectory: './coverage/', }, },})