From 6eec84c687b896a3eb5cc083180eab7ca4d6c300 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 27 Sep 2021 18:07:56 +0200 Subject: [PATCH] fix: update to `@sinonjs/fake-timers@8` (#11879) --- CHANGELOG.md | 2 ++ packages/jest-fake-timers/package.json | 2 +- packages/jest-fake-timers/tsconfig.json | 6 +----- yarn.lock | 10 +++++----- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 758519ae46b4..095aea686ead 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ### Features +- `[@jest/fake-timers]` Update `@sinonjs/fake-timers` to v8 ([#11879](https://github.com/facebook/jest/pull/11879)) + ### Fixes ### Chore & Maintenance diff --git a/packages/jest-fake-timers/package.json b/packages/jest-fake-timers/package.json index af6a82d9b321..acc0012a5f8f 100644 --- a/packages/jest-fake-timers/package.json +++ b/packages/jest-fake-timers/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@jest/types": "^27.1.1", - "@sinonjs/fake-timers": "^7.0.2", + "@sinonjs/fake-timers": "^8.0.1", "@types/node": "*", "jest-message-util": "^27.2.2", "jest-mock": "^27.1.1", diff --git a/packages/jest-fake-timers/tsconfig.json b/packages/jest-fake-timers/tsconfig.json index bab863a95702..9db8e6cc0ed9 100644 --- a/packages/jest-fake-timers/tsconfig.json +++ b/packages/jest-fake-timers/tsconfig.json @@ -2,11 +2,7 @@ "extends": "../../tsconfig.json", "compilerOptions": { "rootDir": "src", - "outDir": "build", - // TODO: remove when shipped types are better - "paths": { - "@sinonjs/fake-timers": ["../../node_modules/@types/sinonjs__fake-timers"] - } + "outDir": "build" }, "references": [ {"path": "../jest-message-util"}, diff --git a/yarn.lock b/yarn.lock index b26ddf4d0b1f..7b6966926b31 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2531,7 +2531,7 @@ __metadata: resolution: "@jest/fake-timers@workspace:packages/jest-fake-timers" dependencies: "@jest/types": ^27.1.1 - "@sinonjs/fake-timers": ^7.0.2 + "@sinonjs/fake-timers": ^8.0.1 "@types/node": "*" "@types/sinonjs__fake-timers": ^6.0.1 jest-message-util: ^27.2.2 @@ -4151,12 +4151,12 @@ __metadata: languageName: node linkType: hard -"@sinonjs/fake-timers@npm:^7.0.2": - version: 7.1.2 - resolution: "@sinonjs/fake-timers@npm:7.1.2" +"@sinonjs/fake-timers@npm:^8.0.1": + version: 8.0.1 + resolution: "@sinonjs/fake-timers@npm:8.0.1" dependencies: "@sinonjs/commons": ^1.7.0 - checksum: 5ce48e40db14d7e1419bae287b84559133d580cb56130b51d7479dff318bfafed87531f8b48f618f07e3c9a6113c9e3f00286805d55de64986b9cccb8eb6d5cf + checksum: f9f73504278c94ab9337d36e9f594082451f55fa7824e8fcd650354aaa0427c3bfb4ea26ff9afdb10e0d3c48da46452d0754bc0248aeb987584d47af63115e3d languageName: node linkType: hard