From defffa7bebde9cfd71e84fc21cc6fd23d98437cc Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Thu, 7 Feb 2019 09:54:59 +0100 Subject: [PATCH] supress flow errors --- packages/jest-circus/src/formatNodeAssertErrors.js | 1 + packages/jest-jasmine2/src/assertionErrorMessage.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/jest-circus/src/formatNodeAssertErrors.js b/packages/jest-circus/src/formatNodeAssertErrors.js index 6434eee318a5..689929b300f7 100644 --- a/packages/jest-circus/src/formatNodeAssertErrors.js +++ b/packages/jest-circus/src/formatNodeAssertErrors.js @@ -7,6 +7,7 @@ * @flow strict-local */ +// $FlowFixMe: Converted to TS. It's also not exported, but should be imported from `matcher-utils` import type {DiffOptions} from 'jest-diff/src/diffStrings'; import type {Event, State} from 'types/Circus'; diff --git a/packages/jest-jasmine2/src/assertionErrorMessage.js b/packages/jest-jasmine2/src/assertionErrorMessage.js index 3e066ae8377d..8c4d092a6e74 100644 --- a/packages/jest-jasmine2/src/assertionErrorMessage.js +++ b/packages/jest-jasmine2/src/assertionErrorMessage.js @@ -7,7 +7,8 @@ * @flow */ -import type {DiffOptions} from 'jest-diff/src/diffStrings'; +// $FlowFixMe: Converted to TS. It's also not exported, but should be imported from `matcher-utils` +import type {DiffOptions} from 'jest-diff'; import {diff, printReceived, printExpected} from 'jest-matcher-utils'; import chalk from 'chalk';