chore: update test setup

pull/659/head
Anthony Fu 3 years ago committed by Kia Ishii
parent 9f951dcf5f
commit 5856024353

@ -1,14 +1,8 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"noUnusedLocals": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": ["ESNext", "DOM"],
"types": ["node", "vitest/global"],
"types": ["node", "vitest/globals"],
"paths": {
"node/*": ["../src/node/*"],
"client/*": ["../src/client/*"]

@ -7,5 +7,8 @@ export default defineConfig({
node: path.resolve(__dirname, '../src/node'),
client: path.resolve(__dirname, '../src/client')
}
},
test: {
globals: true
}
})

@ -54,7 +54,7 @@
"build-node": "rollup --config rollup.config.ts --configPlugin esbuild",
"format": "prettier --write .",
"lint": "pnpm run format",
"test": "vitest run __tests__ -c __tests__/vitest.config.js --global",
"test": "vitest -c __tests__/vitest.config.ts",
"test:all": "run-s lint test",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"release": "node scripts/release.js",

Loading…
Cancel
Save