Skip to content

Commit

Permalink
fix jest config test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 27, 2018
1 parent c301680 commit 021151e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`traverses directory tree up until it finds jest.config 1`] = `
" console.log ../../../__tests__/a-banana.js:3
" console.log ../../../__tests__/a-banana.js:4
<<REPLACED>>/jest.config.js/some/nested/directory
"
`;
Expand Down
3 changes: 2 additions & 1 deletion integration-tests/__tests__/jest.config.js.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ test('works with jest.config.js', () => {
test('traverses directory tree up until it finds jest.config', () => {
writeFiles(DIR, {
'__tests__/a-banana.js': `
const slash = require('slash');
test('banana', () => expect(1).toBe(1));
test('abc', () => console.log(process.cwd()));
test('abc', () => console.log(slash(process.cwd())));
`,
'jest.config.js': `module.exports = {testRegex: '.*-banana.js'};`,
'package.json': '{}',
Expand Down

0 comments on commit 021151e

Please sign in to comment.