Skip to content

Commit

Permalink
refactor(test): remove workaround for jest 24
Browse files Browse the repository at this point in the history
The workaround was needed because jest 24.0 had a dependency cycle and
therefore was problematic to import and use programatically.
See jestjs/jest#7704.

This closes #25.
  • Loading branch information
riesinger committed Mar 4, 2019
1 parent bc92828 commit e6f048b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scripts/test.js
@@ -1,11 +1,5 @@
'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 e6f048b

Please sign in to comment.