mirror of
https://github.com/facebook/sapling.git
synced 2024-10-04 22:07:44 +03:00
Fix test not mocking node:fs
Summary: The change to node:fs from fs broke one test, which was mocking fs and not node:fs. Reviewed By: sggutier Differential Revision: D56543505 fbshipit-source-id: b414724c3089af09f67918d6c7ea9ec4b14d2385
This commit is contained in:
parent
abb6bc101d
commit
803d27af75
@ -15,7 +15,7 @@ import * as util from 'node:util';
|
||||
|
||||
// to prevent permission issues and races, mock FS read/writes in memory.
|
||||
let mockFsData: {[key: string]: string} = {};
|
||||
jest.mock('fs', () => {
|
||||
jest.mock('node:fs', () => {
|
||||
return {
|
||||
promises: {
|
||||
writeFile: jest.fn(async (path: string, data: string) => {
|
||||
|
Loading…
Reference in New Issue
Block a user