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
|
node_modules
|
||||||
|
coverage
|
||||||
dist
|
dist
|
||||||
|
|
||||||
npm-debug.log*
|
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",
|
"check": "turbo run check",
|
||||||
"clean": "turbo clean",
|
"clean": "turbo clean",
|
||||||
"test:watch": "turbo run test:watch",
|
"test:watch": "turbo run test:watch",
|
||||||
|
"test:coverage": "turbo run test:coverage",
|
||||||
"patch": "npm version patch -w",
|
"patch": "npm version patch -w",
|
||||||
"minor": "npm version minor -w",
|
"minor": "npm version minor -w",
|
||||||
"major": "npm version major -w",
|
"major": "npm version major -w",
|
||||||
|
@ -43,6 +44,7 @@
|
||||||
"short-unique-id": "^4.4.4"
|
"short-unique-id": "^4.4.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@vitest/coverage-istanbul": "^0.28.3",
|
||||||
"eslint-config-turbo": "^0.0.4",
|
"eslint-config-turbo": "^0.0.4",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"turbo": "^1.7.1"
|
"turbo": "^1.7.1"
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:watch": "vitest",
|
"test:watch": "vitest",
|
||||||
|
"test:coverage": "vitest run --coverage",
|
||||||
"format": "prettier -w .",
|
"format": "prettier -w .",
|
||||||
"lint": "eslint . --ext .ts,.js",
|
"lint": "eslint . --ext .ts,.js",
|
||||||
"lint:fix": "eslint --fix . --ext .ts,.js",
|
"lint:fix": "eslint --fix . --ext .ts,.js",
|
||||||
|
|
|
@ -4,5 +4,8 @@ export default defineConfig({
|
||||||
test: {
|
test: {
|
||||||
testTimeout: 30000,
|
testTimeout: 30000,
|
||||||
threads: !process.env.CI,
|
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": {
|
"scripts": {
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:watch": "vitest",
|
"test:watch": "vitest",
|
||||||
|
"test:coverage": "vitest run --coverage",
|
||||||
"format": "prettier -w .",
|
"format": "prettier -w .",
|
||||||
"lint": "eslint . --ext .ts,.js",
|
"lint": "eslint . --ext .ts,.js",
|
||||||
"lint:fix": "eslint --fix . --ext .ts,.js",
|
"lint:fix": "eslint --fix . --ext .ts,.js",
|
||||||
|
|
|
@ -3,5 +3,8 @@ import { defineConfig } from 'vitest/config';
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
test: {
|
test: {
|
||||||
testTimeout: 30000,
|
testTimeout: 30000,
|
||||||
|
coverage: {
|
||||||
|
provider: 'istanbul',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
"test:watch": {
|
"test:watch": {
|
||||||
"cache": false
|
"cache": false
|
||||||
},
|
},
|
||||||
|
"test:coverage": {
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
"cache": false
|
"cache": false
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue