Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
Update Jest to v29 (#339)
Browse files Browse the repository at this point in the history
* Update Jest to v29

* Remove types

* Remove @types/jest

* Update tests

* Update jest config

* Remove @jest/types
  • Loading branch information
munierujp authored Oct 15, 2022
1 parent 5800b2f commit 3e7fc76
Show file tree
Hide file tree
Showing 5 changed files with 822 additions and 969 deletions.
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Config } from '@jest/types'
import type { Config } from 'jest'

const config: Config.InitialOptions = {
const config: Config = {
preset: 'ts-jest',
collectCoverage: true,
collectCoverageFrom: [
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
"node": "16.11.1"
},
"devDependencies": {
"@jest/types": "27.4.2",
"@tsconfig/node16": "1.0.3",
"@types/jest": "27.4.1",
"@types/node": "16.11.32",
"@typescript-eslint/eslint-plugin": "5.40.0",
"eslint": "8.25.0",
Expand All @@ -28,10 +26,10 @@
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "6.1.0",
"husky": "7.0.4",
"jest": "27.4.7",
"jest": "29.2.0",
"lint-staged": "13.0.3",
"rimraf": "3.0.2",
"ts-jest": "27.1.4",
"ts-jest": "29.0.3",
"ts-node": "10.9.1",
"typescript": "4.8.4"
},
Expand Down
1 change: 1 addition & 0 deletions src/greet.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from '@jest/globals'
import { greet } from './greet'

describe('greet', () => {
Expand Down
8 changes: 1 addition & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"types": [
"node",
"jest"
]
}
"extends": "./tsconfig.base.json"
}
Loading

0 comments on commit 3e7fc76

Please sign in to comment.