Skip to content

Commit

Permalink
fix PACKAGE typo (jestjs#3551)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarmorrison authored and orta committed May 19, 2017
1 parent f5f04e4 commit 8a393d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-jest/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const jestPreset = require('babel-preset-jest');
const BABELRC_FILENAME = '.babelrc';
const BABELRC_JS_FILENAME = '.babelrc.js';
const BABEL_CONFIG_KEY = 'babel';
const PACAKAGE_JSON = 'package.json';
const PACKAGE_JSON = 'package.json';
const THIS_FILE = fs.readFileSync(__filename);

let babel;
Expand Down Expand Up @@ -49,7 +49,7 @@ const createTransformer = (options: any) => {
cache[directory] = JSON.stringify(require(configJsFilePath));
break;
}
const packageJsonFilePath = path.join(directory, PACAKAGE_JSON);
const packageJsonFilePath = path.join(directory, PACKAGE_JSON);
if (fs.existsSync(packageJsonFilePath)) {
// $FlowFixMe
const packageJsonFileContents = require(packageJsonFilePath);
Expand Down

0 comments on commit 8a393d7

Please sign in to comment.