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 5877144 commit 6522286Copy full SHA for 6522286
packages/react-native-node-api-modules/src/node/path-utils.test.ts
@@ -1,5 +1,5 @@
1
import assert from "node:assert/strict";
2
-import { describe, it, mock as themock } from "node:test";
+import { describe, it } from "node:test";
3
import path from "node:path";
4
import fs from "node:fs";
5
@@ -301,7 +301,7 @@ describe("determineModuleContext", () => {
301
});
302
let readCount = 0;
303
const orig = fs.readFileSync;
304
- themock.method(fs, "readFileSync", (...args: Parameters<typeof fs.readFileSync>) => {
+ context.mock.method(fs, "readFileSync", (...args: Parameters<typeof fs.readFileSync>) => {
305
const [pathArg] = args;
306
if (typeof pathArg === "string" && pathArg.endsWith("package.json")) {
307
readCount++;
0 commit comments