From 51905f47c56293f8fddf30aa0773da3205a5164d Mon Sep 17 00:00:00 2001 From: bcoe Date: Fri, 9 Apr 2021 11:04:01 -0700 Subject: [PATCH] fix(sinon): use sinonjs__fake-timers rather than alias https://github.com/sinonjs/fake-timers appears to have added types which are incompatible with the current implementation in DefinitelyTyped. Refs: https://github.com/sinonjs/sinon/issues/2353 Refs: https://github.com/sinonjs/sinon/issues/2352 --- types/sinon/index.d.ts | 2 +- types/sinon/tsconfig.json | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/types/sinon/index.d.ts b/types/sinon/index.d.ts index db26ede7d624ce..5dc1d7fa59d3ea 100644 --- a/types/sinon/index.d.ts +++ b/types/sinon/index.d.ts @@ -11,7 +11,7 @@ // Simon Schick // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -import * as FakeTimers from '@sinonjs/fake-timers'; +import * as FakeTimers from 'sinonjs__fake-timers'; // sinon uses DOM dependencies which are absent in browser-less environment like node.js // to avoid compiler errors this monkey patch is used diff --git a/types/sinon/tsconfig.json b/types/sinon/tsconfig.json index 0996ae8827f882..3a554d52cc67c1 100644 --- a/types/sinon/tsconfig.json +++ b/types/sinon/tsconfig.json @@ -15,11 +15,6 @@ "../" ], "types": [], - "paths": { - "@sinonjs/*": [ - "sinonjs__*" - ] - }, "noEmit": true, "forceConsistentCasingInFileNames": true },