Skip to content

Commit

Permalink
Update Vitest config
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Aug 28, 2023
1 parent 03c3498 commit b37a267
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ import { configDefaults, defineConfig } from 'vitest/config';

export default defineConfig({
test: {
deps: {
inline: ['vitest-canvas-mock'],
},
environment: 'jsdom',
environmentOptions: {
jsdom: {
html: '<!DOCTYPE html><html><body style="--react-pdf-annotation-layer: 1;--react-pdf-text-layer: 1;"></body></html>',
},
},
exclude: [...configDefaults.exclude, 'src/index.test.ts'],
server: {
deps: {
inline: ['vitest-canvas-mock'],
},
},
setupFiles: 'vitest.setup.ts',
threads: false,
watch: false,
Expand Down

0 comments on commit b37a267

Please sign in to comment.