From ef139d18d3f8ed434fe1bef37bdaae07840ed97a Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Wed, 1 Apr 2020 14:26:03 -0700 Subject: [PATCH] Add @sinonjs/fake-timers redirect to @testing-library/cypress (#43555) * Add @sinonjs/fake-timers redirect to @testing-library/cypress @testing-library/cypress depends indirectly on @sinonjs/fake-timers (cypress -> sinon -> @sinonjs/fake-timers). However, it doesn't have a redirect @sinonjs/fake-timers -> sinonjs__fake-timers. This causes lookup to fail. I'm not sure what caused this problem. I think it was a change in cypress, which recently shipped a new version, but I'm not sure. * Update testing-library__dom to require TS 3.1 pretty-format from jest requires at least 3.1. Not sure why this didn't break before. * update cypress to 3.1 too * update other dependencies --- types/testing-library__cypress/index.d.ts | 2 +- types/testing-library__cypress/tsconfig.json | 3 +++ types/testing-library__dom/index.d.ts | 2 +- types/testing-library__react/index.d.ts | 2 +- types/testing-library__vue/index.d.ts | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/types/testing-library__cypress/index.d.ts b/types/testing-library__cypress/index.d.ts index 3c3b2c285d..3eca67835c 100644 --- a/types/testing-library__cypress/index.d.ts +++ b/types/testing-library__cypress/index.d.ts @@ -8,7 +8,7 @@ // Airat Aminev // Simon Jespersen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.0 +// TypeScript Version: 3.1 import { configure, diff --git a/types/testing-library__cypress/tsconfig.json b/types/testing-library__cypress/tsconfig.json index 50ddfed592..2e861c7e3a 100644 --- a/types/testing-library__cypress/tsconfig.json +++ b/types/testing-library__cypress/tsconfig.json @@ -22,6 +22,9 @@ ], "@testing-library/dom": [ "testing-library__dom" + ], + "@sinonjs/fake-timers": [ + "sinonjs__fake-timers" ] } }, diff --git a/types/testing-library__dom/index.d.ts b/types/testing-library__dom/index.d.ts index d6747b4871..dd1b2132f7 100644 --- a/types/testing-library__dom/index.d.ts +++ b/types/testing-library__dom/index.d.ts @@ -8,7 +8,7 @@ // Justin Hall // Wesley Tsai // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.0 +// TypeScript Version: 3.1 import { getQueriesForElement } from './get-queries-for-element'; import * as queries from './queries'; diff --git a/types/testing-library__react/index.d.ts b/types/testing-library__react/index.d.ts index 9d438a0588..1c1abb30d2 100644 --- a/types/testing-library__react/index.d.ts +++ b/types/testing-library__react/index.d.ts @@ -8,7 +8,7 @@ // Daniel Afonso // Tim Swalling // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.0 +// TypeScript Version: 3.1 import { OptionsReceived as PrettyFormatOptions } from 'pretty-format'; import { queries, Queries, BoundFunction } from '@testing-library/dom'; diff --git a/types/testing-library__vue/index.d.ts b/types/testing-library__vue/index.d.ts index 2325e32f55..6c67c1e9e6 100644 --- a/types/testing-library__vue/index.d.ts +++ b/types/testing-library__vue/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/testing-library/vue-testing-library // Definitions by: Tim Yates // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.0 +// TypeScript Version: 3.1 import { ThisTypedMountOptions, VueClass } from '@vue/test-utils'; import Vue from 'vue'; import { Store, StoreOptions } from 'vuex';