Skip to content

Commit

Permalink
Merge pull request #35898 from ruben-rebelo/ts-migration/fs-promises-…
Browse files Browse the repository at this point in the history
…mock

[No QA] [TS migration] Migrate fs promises mock
  • Loading branch information
NikkiWines authored Feb 13, 2024
2 parents 86ed961 + 77020a4 commit 7218911
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions __mocks__/fs/promises.js

This file was deleted.

8 changes: 8 additions & 0 deletions __mocks__/fs/promises.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {fs} from 'memfs';
import type {FsPromisesApi} from 'memfs/lib/node/types';

type PromisesMock = FsPromisesApi;

const promisesMock: PromisesMock = fs.promises;

export default promisesMock;

0 comments on commit 7218911

Please sign in to comment.