Skip to content

Commit

Permalink
Migrate from jest to vitest (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
JstnMcBrd authored Oct 28, 2023
1 parent ed688f5 commit 4e6a2f0
Show file tree
Hide file tree
Showing 62 changed files with 3,070 additions and 5,051 deletions.
35 changes: 3 additions & 32 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"root": true,
"ignorePatterns": ["dist", "node_modules", "src/constants/version.ts"],
"ignorePatterns": ["dist", "node_modules", "coverage", "src/constants/version.ts"],

"extends": [
"strictest/eslint",
Expand All @@ -23,8 +23,7 @@
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.prod.json",
"tsconfigRootDir": "./"
"project": "./tsconfig.eslint.json"
},
"env": {
"node": true
Expand Down Expand Up @@ -96,33 +95,5 @@
"spaced-comment": ["warn", "always", { "exceptions": ["*"] }], // doc comments exist
"yoda": "error",
"import/no-default-export": "error"
},

"overrides": [
{
"files": ["src/**/*.test.ts", "src/**/__mocks__/**/*.ts"],
"extends": ["plugin:jest/recommended"],
"plugins": ["jest"],
"parserOptions": {
"project": "./tsconfig.test.json"
},
"env": {
"jest": true
},
"rules": {
"prettier/prettier": "warn",
"max-nested-callbacks": "off" // unit tests involve a lot of nested callbacks
}
},
{
"files": ["scripts/**/*.ts"],
"parserOptions": {
"project": "./tsconfig.test.json",
"tsconfigRootDir": "."
},
"rules": {
"unicorn/no-process-exit": "off"
}
}
]
}
}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Upgraded to node 20 LTS
- Use Vitest instead of Jest for forward compatibility with ESM.
- Simplified TypeScript build settings and followed @typescript-eslint standards
- Simplified Eslint settings

### Fixed

Expand Down
27 changes: 0 additions & 27 deletions jest.config.json

This file was deleted.

Loading

0 comments on commit 4e6a2f0

Please sign in to comment.