Skip to content

Commit 85801ef

Browse files
sahrensFacebook Github Bot 6
authored andcommitted
Remove invariant hack for jest
Reviewed By: vjeux, cpojer Differential Revision: D2988899 fb-gh-sync-id: e1b2a32a3f665b8f8a246e73e8dd620ff8506ea7 shipit-source-id: e1b2a32a3f665b8f8a246e73e8dd620ff8506ea7
1 parent 2957f73 commit 85801ef

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

Libraries/Animated/src/Interpolation.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,9 @@
1212
/* eslint no-bitwise: 0 */
1313
'use strict';
1414

15+
var invariant = require('invariant');
1516
var normalizeColor = require('normalizeColor');
1617

17-
// TODO(#7644673): fix this hack once github jest actually checks invariants
18-
var invariant = function(condition, message) {
19-
if (!condition) {
20-
var error = new Error(message);
21-
(error: any).framesToPop = 1; // $FlowIssue
22-
throw error;
23-
}
24-
};
25-
2618
type ExtrapolateType = 'extend' | 'identity' | 'clamp';
2719

2820
export type InterpolationConfigType = {

0 commit comments

Comments
 (0)