Skip to content

Commit

Permalink
workflow: complete migration from jest to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 26, 2023
1 parent 158db33 commit 28b95da
Show file tree
Hide file tree
Showing 10 changed files with 177 additions and 1,946 deletions.
67 changes: 0 additions & 67 deletions jest.config.js

This file was deleted.

15 changes: 6 additions & 9 deletions package.json
Expand Up @@ -11,12 +11,12 @@
"lint": "eslint --cache --ext .ts packages/*/{src,__tests__}/**.ts",
"format": "prettier --write --cache --parser typescript \"**/*.[tj]s?(x)\"",
"format-check": "prettier --check --cache --parser typescript \"**/*.[tj]s?(x)\"",
"test": "run-s \"test-unit {@}\" \"test-e2e {@}\"",
"test-unit": "jest --filter ./scripts/filter-unit.mjs",
"test-e2e": "node scripts/build.mjs vue -f global -d && jest --filter ./scripts/filter-e2e.js --runInBand",
"test": "vitest",
"test-unit": "vitest -c vitest.unit.config.ts",
"test-e2e": "node scripts/build.mjs vue -f global -d && vitest -c vitest.e2e.config.ts",
"test-dts": "node scripts/build.mjs shared reactivity runtime-core runtime-dom -dt -f esm-bundler && npm run test-dts-only",
"test-dts-only": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.build.mjson",
"test-coverage": "node scripts/build.mjs vue -f global -d && jest --runInBand --coverage --bail",
"test-coverage": "vitest -c vitest.unit.config.ts --coverage",
"release": "node scripts/release.mjs",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"dev-esm": "node scripts/dev.mjs -if esm-bundler-runtime",
Expand Down Expand Up @@ -62,9 +62,9 @@
"@rollup/plugin-replace": "^5.0.1",
"@rollup/plugin-terser": "^0.1.0",
"@types/hash-sum": "^1.0.0",
"@types/jest": "^29.2.2",
"@types/node": "^16.4.7",
"@typescript-eslint/parser": "^5.23.0",
"@vitest/coverage-istanbul": "^0.28.2",
"@vue/consolidate": "0.17.3",
"@vue/reactivity": "workspace:*",
"@vue/runtime-core": "workspace:*",
Expand All @@ -76,10 +76,8 @@
"enquirer": "^2.3.2",
"esbuild": "^0.17.4",
"eslint": "^7.7.0",
"eslint-plugin-jest": "26.1.5",
"eslint-plugin-jest": "^27.2.1",
"execa": "^4.0.2",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"lint-staged": "^10.2.10",
"lodash": "^4.17.15",
"marked": "^4.0.10",
Expand All @@ -98,7 +96,6 @@
"simple-git-hooks": "^2.8.1",
"terser": "^5.15.1",
"todomvc-app-css": "^2.3.0",
"ts-jest": "^29.0.3",
"tslib": "^2.4.0",
"typescript": "^4.8.0",
"vite": "^4.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/vue/src/dev.ts
Expand Up @@ -2,6 +2,7 @@ import { initCustomFormatter } from '@vue/runtime-dom'

export function initDev() {
if (__BROWSER__) {
/* istanbul ignore if */
if (!__ESM_BUNDLER__) {
console.info(
`You are running a development build of Vue.\n` +
Expand Down

0 comments on commit 28b95da

Please sign in to comment.