Skip to content

Commit

Permalink
vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
revmischa committed Jul 2, 2024
1 parent 0b3bda5 commit 35372b8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"typescript": "^5.5.2",
"typescript-eslint": "^7.15.0",
"vite": "^5.3.2",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0"
},
"engines": {
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { defineConfig, configDefaults } from 'vitest/config';
import { defineConfig, configDefaults } from 'vitest/config'
import tsconfigPaths from 'vite-tsconfig-paths'

export default defineConfig({
plugins: [
tsconfigPaths({
loose: true,
}),
],

test: {
globals: true,
clearMocks: true,
Expand Down Expand Up @@ -32,4 +39,4 @@ export default defineConfig({
},
},
},
});
})

0 comments on commit 35372b8

Please sign in to comment.