Skip to content

Commit

Permalink
Fix config filename (#5782)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky authored and rickhanlonii committed Mar 12, 2018
1 parent 4034718 commit 620bdca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ Ran all test suites.
"
`;
exports[`works with jest.conf.js 1`] = `
exports[`works with jest.config.js 1`] = `
"PASS __tests__/a-banana.js
✓ banana
"
`;
exports[`works with jest.conf.js 2`] = `
exports[`works with jest.config.js 2`] = `
"Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/__tests__/jest.config.js.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SkipOnWindows.suite();
beforeEach(() => cleanup(DIR));
afterAll(() => cleanup(DIR));

test('works with jest.conf.js', () => {
test('works with jest.config.js', () => {
writeFiles(DIR, {
'__tests__/a-banana.js': `test('banana', () => expect(1).toBe(1));`,
'jest.config.js': `module.exports = {testRegex: '.*-banana.js'};`,
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/__tests__/version.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SkipOnWindows.suite();
beforeEach(() => cleanup(DIR));
afterAll(() => cleanup(DIR));

test('works with jest.conf.js', () => {
test('works with jest.config.js', () => {
writeFiles(DIR, {
'.watchmanconfig': '',
'package.json': '{}',
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-config/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function readConfig(
config.rootDir = config.rootDir || packageRootOrConfig;
rawOptions = config;
// A string passed to `--config`, which is either a direct path to the config
// or a path to directory containing `package.json` or `jest.conf.js`
// or a path to directory containing `package.json` or `jest.config.js`
} else if (!skipArgvConfigOption && typeof argv.config == 'string') {
configPath = resolveConfigPath(argv.config, process.cwd());
rawOptions = readConfigFileAndSetRootDir(configPath);
Expand Down

0 comments on commit 620bdca

Please sign in to comment.