Skip to content

Commit

Permalink
Merge pull request facebook#8622 from bvaughn/preproccessor-jest-cching
Browse files Browse the repository at this point in the history
Jest preprocessor better aware of error-codes/codes.json WRT caching
  • Loading branch information
bvaughn authored Dec 22, 2016
2 parents a27e4f3 + b209804 commit cb66f5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/jest/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var pathToModuleMap = require.resolve('fbjs/module-map');
var pathToBabelPluginDevWithCode = require.resolve('../error-codes/dev-expression-with-codes');
var pathToBabelPluginModules = require.resolve('fbjs-scripts/babel-6/rewrite-modules');
var pathToBabelrc = path.join(__dirname, '..', '..', '.babelrc');
var pathToErrorCodes = require.resolve('../error-codes/codes.json');

// TODO: make sure this stays in sync with gulpfile
var babelOptions = {
Expand Down Expand Up @@ -71,5 +72,6 @@ module.exports = {
pathToModuleMap,
pathToBabelPluginDevWithCode,
pathToBabelPluginModules,
pathToErrorCodes,
]),
};

0 comments on commit cb66f5c

Please sign in to comment.