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 05da2ac commit d7521e3Copy full SHA for d7521e3
packages/testing/src/setup.ts
@@ -2,6 +2,13 @@ import { fs, vol } from "memfs";
2
import { type Result, err, ok } from "neverthrow";
3
import { afterEach, expect, vi } from "vitest";
4
import type { LogEntry } from "winston";
5
+import * as posixPath from "node:path/posix";
6
+
7
+// Mocking the `path` module to use posix paths for consistency across platforms
8
+vi.mock("node:path", () => ({
9
+ ...posixPath,
10
+ default: posixPath,
11
+}));
12
13
vi.mock("fs", () => ({
14
...fs,
0 commit comments