Skip to content

Commit a7a7ede

Browse files
committed
Fix incorrectly hardcoded path
1 parent e1ccfbd commit a7a7ede

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/metal-planes-bow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"sveltekit-playwright-fetch-mock": patch
3+
---
4+
5+
Fix incorrectly hardcoded path

src/mockFetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default async function playwrightMockServerFetch(
4343
name: COOKIE_NAME,
4444
value: JSON.stringify(mocks),
4545
domain: "localhost",
46-
path: "/stay/",
46+
path: "/",
4747
expires: 1707508488,
4848
},
4949
]);

0 commit comments

Comments
 (0)