Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
merge vite and vitest config
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Nov 10, 2023
1 parent d2279d1 commit b83aa34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"watch": "tsc --build tsconfig.build.json --watch --verbose",
"lint": "eslint {**/src/**/*.ts,**/src/**/*.tsx,**/test/**/*.ts,**/test/**/*.tsx}",
"build": "npm run build --workspaces",
"test": "vitest -c vitest.config.ts",
"test": "node --experimental-import-meta-resolve ./node_modules/vitest/vitest.mjs -c vite.config.ts",
"release:prepare": "npm run reset:repo && npm ci && npm run lint && npm run build",
"reset:repo": "git clean -f -X -d",
"start:example:server:json": "npm run start:server:json --workspace packages/examples",
Expand Down
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ export default defineConfig(() => {
},
define: {
rootDirectory: JSON.stringify(__dirname)
},
test: {
browser: {
enabled: true,
headless: true,
name: 'chrome'
}
}
};
return config;
Expand Down
11 changes: 0 additions & 11 deletions vitest.config.ts

This file was deleted.

0 comments on commit b83aa34

Please sign in to comment.