Update jest.setup.ts
Co-authored-by: Vincent <Vinnl@users.noreply.github.com>
This commit is contained in:
Родитель
7403682b78
Коммит
c700533a87
|
@ -12,6 +12,11 @@ import failOnConsole from "jest-fail-on-console";
|
|||
import * as globalStorybookConfig from "./.storybook/preview";
|
||||
import "jest-axe/extend-expect";
|
||||
|
||||
// `@types/jest-axe` doesn't extend `expect` when imported from `@jest/globals`.
|
||||
// This manually sets the correct type. Note that it has to extend the
|
||||
// TestingLibraryMatchers to avoid overriding those.
|
||||
// Also see
|
||||
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/67495
|
||||
declare module "expect" {
|
||||
interface Matchers<R = void>
|
||||
extends TestingLibraryMatchers<typeof expect.stringContaining, R> {
|
||||
|
|
Загрузка…
Ссылка в новой задаче