Skip to content

Commit

Permalink
Fix a few unit tests by mocking fs more
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Oct 19, 2023
1 parent b2e1826 commit f70dcbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/env/lib/config/test/config-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jest.mock( 'fs', () => ( {
promises: {
readFile: jest.fn(),
stat: jest.fn().mockResolvedValue( true ),
mkdir: jest.fn(),
writeFile: jest.fn(),
},
} ) );

Expand Down
1 change: 1 addition & 0 deletions packages/env/lib/test/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jest.mock( 'fs', () => ( {
promises: {
readFile: jest.fn(),
writeFile: jest.fn(),
mkdir: jest.fn(),
},
} ) );

Expand Down

0 comments on commit f70dcbb

Please sign in to comment.