We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4031b74 commit 873aa6bCopy full SHA for 873aa6b
packages/mongodb-memory-server-core/src/util/__tests__/utils.test.ts
@@ -25,10 +25,7 @@ describe('utils', () => {
25
26
describe('pathExists', () => {
27
it('should return true if there are stats', async () => {
28
- jest.spyOn(fspromises, 'stat').mockResolvedValueOnce(
29
- // @ts-expect-error Mock value, though nodejs does not want it to be public anymore
30
- new Stats()
31
- );
+ jest.spyOn(fspromises, 'stat').mockResolvedValueOnce(new Stats());
32
await expect(utils.pathExists('/some/path')).resolves.toEqual(true);
33
});
34
0 commit comments