From 73c5bc246de79ca2cc805a8b61e42bec39cb97fd Mon Sep 17 00:00:00 2001 From: Benny Neugebauer Date: Fri, 9 Jun 2023 19:00:10 +0200 Subject: [PATCH] refactor: Replace @types/jest with @jest/globals --- package.json | 1 - src/MyClass.test.ts | 1 + src/cli.test.ts | 1 + yarn.lock | 12 ++---------- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 174f0017..f1ed7164 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "@evilmartians/lefthook": "1.4.1", "@tstv/eslint-config": "2.0.1", "@tstv/tsconfig-common": "2.0.0", - "@types/jest": "29.5.2", "@types/node": "20.2.5", "cross-env": "7.0.3", "eslint": "8.42.0", diff --git a/src/MyClass.test.ts b/src/MyClass.test.ts index 91642ffa..f4bbecf2 100644 --- a/src/MyClass.test.ts +++ b/src/MyClass.test.ts @@ -1,3 +1,4 @@ +import {describe, it, expect} from '@jest/globals'; import {MyClass} from './MyClass'; describe('MyClass', () => { diff --git a/src/cli.test.ts b/src/cli.test.ts index 10bf1f13..a9cd5772 100644 --- a/src/cli.test.ts +++ b/src/cli.test.ts @@ -1,3 +1,4 @@ +import {describe, it, expect} from '@jest/globals'; import {sayHello} from './cli'; describe('sayHello', () => { diff --git a/yarn.lock b/yarn.lock index d00585ba..fb3b46e0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1022,14 +1022,6 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@29.5.2": - version "29.5.2" - resolved "https://registry.npmjs.org/@types/jest/-/jest-29.5.2.tgz#86b4afc86e3a8f3005b297ed8a72494f89e6395b" - integrity sha512-mSoZVJF5YzGVCk+FsDxzDuH7s+SCkzrgKZzf0Z0T2WudhBUPoF6ktoTPC4R0ZoCPCV5xUvuU6ias5NvxcBcMMg== - dependencies: - expect "^29.0.0" - pretty-format "^29.0.0" - "@types/json-schema@^7.0.9": version "7.0.9" resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d" @@ -1859,7 +1851,7 @@ exit@^0.1.2: resolved "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= -expect@^29.0.0, expect@^29.5.0: +expect@^29.5.0: version "29.5.0" resolved "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz#68c0509156cb2a0adb8865d413b137eeaae682f7" integrity sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg== @@ -3037,7 +3029,7 @@ prettier@2.8.8: resolved "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== -pretty-format@^29.0.0, pretty-format@^29.5.0: +pretty-format@^29.5.0: version "29.5.0" resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz#283134e74f70e2e3e7229336de0e4fce94ccde5a" integrity sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==