Skip to content

Commit

Permalink
Log the files in the mock filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
negativetwelve committed Nov 9, 2017
1 parent 3eb8c6e commit d2ae53c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/jest-plugin-fs/src/__tests__/fs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ describe('fs', () => {
beforeEach(() => fs.unmock([filename]));

it('should exist in the virtual filesystem', () => {
expect(
fsExtra.readFileSync(path.resolve(filename), 'utf8'),
).toEqual('this is a test\n');
console.log(fs.files());
expect(fsExtra.readFileSync(filename, 'utf8')).toEqual('this is a test\n');
});
});
});
Expand Down

0 comments on commit d2ae53c

Please sign in to comment.