Skip to content

Commit

Permalink
Fix jest 24 tests failing
Browse files Browse the repository at this point in the history
  • Loading branch information
riesinger committed Feb 3, 2019
1 parent 520f4ec commit 776646a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
'use strict';

/*
* @todo Remove jest workaround from test.js
* @body This workaround was added because of a problem with using jest 24 programmatically. See https://github.com/facebook/jest/issues/7704
*/
require('jest/node_modules/jest-cli/build/cli');

// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'test';
process.env.NODE_ENV = 'test';
Expand Down

0 comments on commit 776646a

Please sign in to comment.