Skip to content

Commit

Permalink
Update tests to use jest.requireActual
Browse files Browse the repository at this point in the history
  • Loading branch information
palmerj3 committed Jun 20, 2020
1 parent 2b4ad87 commit d3a2b21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion __tests__/getOptions.test.js
Expand Up @@ -6,7 +6,7 @@ const getOptions = require('../utils/getOptions.js');
jest.mock('fs', () => {
return Object.assign(
{},
require.requireActual('fs'),
jest.requireActual('fs'),
{
existsSync: jest.fn().mockReturnValue(true)
}
Expand Down
4 changes: 2 additions & 2 deletions __tests__/testResultProcessor.test.js
Expand Up @@ -3,7 +3,7 @@
jest.mock('mkdirp', () => {
return Object.assign(
{},
require.requireActual('mkdirp'),
jest.requireActual('mkdirp'),
{
sync: jest.fn()
}
Expand All @@ -13,7 +13,7 @@ jest.mock('mkdirp', () => {
jest.mock('fs', () => {
return Object.assign(
{},
require.requireActual('fs'),
jest.requireActual('fs'),
{
writeFileSync: jest.fn()
}
Expand Down

0 comments on commit d3a2b21

Please sign in to comment.