Skip to content

Commit

Permalink
Converting Jest config to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
khawkins committed May 10, 2024
1 parent acda291 commit 18ff9c5
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 8 deletions.
6 changes: 5 additions & 1 deletion jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/

export default {
import type { Config } from 'jest';

const config: Config = {
displayName: 'Unit Tests',
setupFilesAfterEnv: ['jest-extended', 'jest-chain'],
preset: 'ts-jest',
Expand All @@ -32,3 +34,5 @@ export default {
]
]
};

export default config;
135 changes: 135 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,8 @@
},
"type": "commonjs",
"main": "dist/src/index.js",
"directories": {
"lib": "src",
"rules": "src/rules",
"test": "test"
},
"files": [
"/dist",
"!**/test/"
"/dist"
],
"devDependencies": {
"@eslint/js": "^9.2.0",
Expand All @@ -80,6 +74,7 @@
"jest-sonar-reporter": "^2.0.0",
"prettier": "^3.0.2",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"typescript-eslint": "^7.8.0"
},
Expand Down

0 comments on commit 18ff9c5

Please sign in to comment.