Skip to content

Commit 873aa6b

Browse files
committed
style(utils.test): remove random non-error "ts-expect-error"
Previously it did not error, then it did, now it does not once more.
1 parent 4031b74 commit 873aa6b

File tree

1 file changed

+1
-4
lines changed
  • packages/mongodb-memory-server-core/src/util/__tests__

1 file changed

+1
-4
lines changed

packages/mongodb-memory-server-core/src/util/__tests__/utils.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ describe('utils', () => {
2525

2626
describe('pathExists', () => {
2727
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-
);
28+
jest.spyOn(fspromises, 'stat').mockResolvedValueOnce(new Stats());
3229
await expect(utils.pathExists('/some/path')).resolves.toEqual(true);
3330
});
3431

0 commit comments

Comments
 (0)