chore: set up test:coverage scripts (#260)
* chore: set up test:coverage scripts * devops: bring back form test CI workaround
This commit is contained in:
parent
a4db6e4680
commit
13f96a4fe9
9 changed files with 1014 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
node_modules
|
||||
coverage
|
||||
dist
|
||||
|
||||
npm-debug.log*
|
||||
|
|
1003
package-lock.json
generated
1003
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -25,6 +25,7 @@
|
|||
"check": "turbo run check",
|
||||
"clean": "turbo clean",
|
||||
"test:watch": "turbo run test:watch",
|
||||
"test:coverage": "turbo run test:coverage",
|
||||
"patch": "npm version patch -w",
|
||||
"minor": "npm version minor -w",
|
||||
"major": "npm version major -w",
|
||||
|
@ -43,6 +44,7 @@
|
|||
"short-unique-id": "^4.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitest/coverage-istanbul": "^0.28.3",
|
||||
"eslint-config-turbo": "^0.0.4",
|
||||
"rimraf": "^3.0.2",
|
||||
"turbo": "^1.7.1"
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
"scripts": {
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"format": "prettier -w .",
|
||||
"lint": "eslint . --ext .ts,.js",
|
||||
"lint:fix": "eslint --fix . --ext .ts,.js",
|
||||
|
|
|
@ -4,5 +4,8 @@ export default defineConfig({
|
|||
test: {
|
||||
testTimeout: 30000,
|
||||
threads: !process.env.CI,
|
||||
coverage: {
|
||||
provider: 'istanbul',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
8
packages/validator/.gitignore
vendored
8
packages/validator/.gitignore
vendored
|
@ -1,8 +0,0 @@
|
|||
node_modules
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
.DS_Store
|
|
@ -24,6 +24,7 @@
|
|||
"scripts": {
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"format": "prettier -w .",
|
||||
"lint": "eslint . --ext .ts,.js",
|
||||
"lint:fix": "eslint --fix . --ext .ts,.js",
|
||||
|
|
|
@ -3,5 +3,8 @@ import { defineConfig } from 'vitest/config';
|
|||
export default defineConfig({
|
||||
test: {
|
||||
testTimeout: 30000,
|
||||
coverage: {
|
||||
provider: 'istanbul',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
"test:watch": {
|
||||
"cache": false
|
||||
},
|
||||
"test:coverage": {
|
||||
"cache": false
|
||||
},
|
||||
"dev": {
|
||||
"cache": false
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue