Skip to content

Commit

Permalink
update vitest (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Feb 20, 2023
1 parent 62318df commit f57d89f
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 41 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vitest.config.ts
1 change: 0 additions & 1 deletion e2e/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
vitest.config.ts
node_modules/
14 changes: 3 additions & 11 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"lint": "tsc --noEmit --project tsconfig.json && eslint . --ext .js,.ts && prettier --check .",
"fix": "eslint . --ext .js,.ts --fix && prettier -w .",
"test": "vitest --silent",
"test": "vitest run",
"test:watch": "vitest",
"sidecar": "sh ./scripts/sidecar-chopsticks.sh"
},
"engines": {
Expand All @@ -24,15 +25,6 @@
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"prettier": "^2.8.4",
"vitest": "^0.28.3"
},
"prettier": {
"tabWidth": 2,
"semi": false,
"singleQuote": true
},
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix",
"*.{js,ts,css,md}": "prettier --write"
"vitest": "^0.28.5"
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"build-wasm": "wasm-pack build executor --target nodejs --scope acala-network",
"build-wasm-logging": "yarn build-wasm --features=logging",
"check": "cd executor && cargo check --locked",
"test": "yarn workspaces foreach run test",
"test": "vitest run",
"test:watch": "vitest",
"start": "yarn workspace @acala-network/chopsticks run start",
"dev": "yarn workspace @acala-network/chopsticks run dev",
"dev:karura": "yarn workspace @acala-network/chopsticks run dev:karura",
Expand All @@ -37,6 +38,7 @@
},
"devDependencies": {
"husky": "^8.0.3",
"vitest": "^0.28.5",
"wasm-pack": "^0.10.3"
}
}
1 change: 0 additions & 1 deletion packages/chopsticks/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
vitest.config.ts
node_modules/
lib/
preview/
Expand Down
6 changes: 3 additions & 3 deletions packages/chopsticks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"lint": "tsc --noEmit --project tsconfig.json && eslint . --ext .js,.ts && prettier --check .",
"fix": "eslint . --ext .js,.ts --fix && prettier -w .",
"build": "rm -rf lib && tsc -p ./tsconfig.json",
"test": "vitest --silent",
"test:dev": "LOG_LEVEL=trace vitest --inspect",
"test": "vitest run",
"test:watch": "vitest",
"start": "ts-node --transpile-only src/cli.ts",
"dev": "LOG_LEVEL=trace ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=../../configs/dev.yml",
"dev:karura": "ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=../../configs/karura.yml",
Expand Down Expand Up @@ -58,7 +58,7 @@
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"typescript": "^4.9.4",
"vitest": "^0.28.3"
"vitest": "^0.28.5"
},
"files": [
"lib",
Expand Down
8 changes: 0 additions & 8 deletions packages/chopsticks/vitest.config.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/core/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
vitest.config.ts
node_modules/
lib/
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"lint": "tsc --noEmit --project tsconfig.json && eslint . --ext .js,.ts && prettier --check .",
"fix": "eslint . --ext .js,.ts --fix && prettier -w .",
"build": "rm -rf lib && tsc -p ./tsconfig.json",
"test": "vitest --silent",
"test:dev": "LOG_LEVEL=trace vitest --inspect"
"test": "vitest run",
"test:watch": "vitest"
},
"devDependencies": {
"@types/prettier": "^2",
Expand All @@ -21,7 +21,7 @@
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"prettier": "^2.8.4",
"vitest": "^0.28.3"
"vitest": "^0.28.5"
},
"files": [
"lib"
Expand Down
8 changes: 0 additions & 8 deletions packages/core/vitest.config.ts

This file was deleted.

File renamed without changes.
9 changes: 5 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ __metadata:
eslint-plugin-import: ^2.27.5
eslint-plugin-sort-imports-es6-autofix: ^0.6.0
prettier: ^2.8.4
vitest: ^0.28.3
vitest: ^0.28.5
languageName: unknown
linkType: soft

Expand All @@ -35,7 +35,7 @@ __metadata:
eslint-plugin-import: ^2.27.5
eslint-plugin-sort-imports-es6-autofix: ^0.6.0
prettier: ^2.8.4
vitest: ^0.28.3
vitest: ^0.28.5
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -82,7 +82,7 @@ __metadata:
ts-node-dev: ^2.0.0
typeorm: ^0.3.11
typescript: ^4.9.4
vitest: ^0.28.3
vitest: ^0.28.5
ws: ^8.12.0
yargs: ^17.6.2
zod: ^3.20.2
Expand Down Expand Up @@ -4612,6 +4612,7 @@ __metadata:
resolution: "root-workspace-0b6124@workspace:."
dependencies:
husky: ^8.0.3
vitest: ^0.28.5
wasm-pack: ^0.10.3
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -5561,7 +5562,7 @@ __metadata:
languageName: node
linkType: hard

"vitest@npm:^0.28.3":
"vitest@npm:^0.28.5":
version: 0.28.5
resolution: "vitest@npm:0.28.5"
dependencies:
Expand Down

0 comments on commit f57d89f

Please sign in to comment.