Skip to content

Commit e738d9b

Browse files
committed
remove flow remainings
1 parent aeea0fb commit e738d9b

6 files changed

+1
-8
lines changed

.eslintignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules
2-
flow-typed
32
build

.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "@callstack",
33
"rules": {
44
"global-require": 0,
5-
"flowtype/no-weak-types": 0,
65
"strict": [0, "global"],
76
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
87
"react-native/no-raw-text": 0

.npmignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
src
22
__tests__
3-
flow-typed
43
yarn.lock
54
.eslintcache

__tests__/getSnapshotDiffSerializer.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { snapshotDiff, getSnapshotDiffSerializer } = require('../src/index');
2-
// $FlowFixMe – wrong type declaration in flow-typed/[email protected]
2+
33
expect.addSnapshotSerializer(getSnapshotDiffSerializer());
44

55
test('serialize text diff output', () => {

__tests__/snapshotDiff.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ test('can use stablePatchmarks on diff', () => {
244244
describe('failed optional deps', () => {
245245
beforeEach(() => {
246246
jest.mock('react-test-renderer', () => {
247-
// $FlowFixMe -- this is intended.
248247
require('non-existent-module-for-testing'); // eslint-disable-line
249248
});
250249
});

__tests__/toMatchDiffSnapshot.test.js

-3
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,15 @@ beforeAll(() => {
3333
});
3434

3535
test('works with default options', () => {
36-
// $FlowFixMe
3736
expect(a).toMatchDiffSnapshot(b);
3837
});
3938

4039
[{ expand: true }, { contextLines: 0 }].forEach((options) => {
4140
test(`proxies "${Object.keys(options).join(', ')}" option(s)`, () => {
42-
// $FlowFixMe
4341
expect(a).toMatchDiffSnapshot(b, options);
4442
});
4543
});
4644

4745
test('works with custom name', () => {
48-
// $FlowFixMe
4946
expect(a).toMatchDiffSnapshot(b, {}, 'slim');
5047
});

0 commit comments

Comments
 (0)