Skip to content

Commit

Permalink
refactor: Migrate from jest to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldowseza committed Feb 8, 2024
1 parent cc4faf9 commit 0bec06f
Show file tree
Hide file tree
Showing 24 changed files with 4,419 additions and 15,711 deletions.
6 changes: 0 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@
"rules": {
"@typescript-eslint/explicit-function-return-type": "error"
}
},
{
"files": ["packages/*/test/**/*.test.ts"],
"env": {
"jest": true
}
}
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
build
node_modules
coverage
packages/*/dist
packages/*/test-utils-doc
packages/*/coverage
Expand Down
18,054 changes: 3,697 additions & 14,357 deletions package-lock.json

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,38 @@
"scripts": {
"lint": "eslint --ignore-path .gitignore --ext js,ts .",
"build": "lerna run build",
"test": "lerna run test --parallel",
"test": "vitest run && lerna run test --parallel",
"postinstall": "lerna bootstrap --no-ci",
"postpublish": "lerna publish",
"preinstall": "./scripts/unlock-packages.js",
"prepare": "husky install"
},
"devDependencies": {
"@cloudscape-design/documenter": "^1.0.0",
"@types/jest": "^28.1.3",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.30.6",
"@typescript-eslint/parser": "^5.30.6",
"@vitest/coverage-istanbul": "^1.2.2",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-unicorn": "^43.0.1",
"husky": "^8.0.1",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"jsdom": "^24.0.0",
"lerna": "^5.5.2",
"lint-staged": "^13.0.3",
"prettier": "^2.8.0",
"react-dom": "^18.2.0",
"ts-jest": "^28.0.5",
"typescript": "^4.7.4"
"typescript": "^4.7.4",
"vitest": "^1.2.2"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
],
"package-lock.json": [
"node ./scripts/unlock-package-lock.js"
]
}
}
Loading

0 comments on commit 0bec06f

Please sign in to comment.