Skip to content

Commit 05544f1

Browse files
committed
fix: No more faulty paths due to wordpress changing pwd
1 parent 0239b3a commit 05544f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/utils/path.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import path from "node:path";
22

3-
// Jest runs with cwd at the project root; keep it simple and stable.
4-
export const projectRoot = path.resolve(process.cwd());
3+
// Anchor to the repository layout rather than process cwd, which some tests mutate.
4+
export const projectRoot = path.resolve(__dirname, "..", "..");

0 commit comments

Comments
 (0)