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:
Evan Krause 2024-04-24 15:21:06 -07:00 committed by Facebook GitHub Bot
parent abb6bc101d
commit 803d27af75

View File

@ -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) => {