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 Aug 12, 2023
1 parent 036e33b commit 8b12b51
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 8b12b51

Please sign in to comment.