We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0efb80c commit c91f137Copy full SHA for c91f137
1 file changed
tests/pinned/manager.test.ts
@@ -207,11 +207,13 @@ describe("pinned/manager", () => {
207
isFile: () => filePath.endsWith(".git"),
208
}));
209
mocked.readFile.mockImplementation(async (filePath: string) => {
210
+ const normalizedPath = filePath.replace(/\\/g, "/");
211
+
212
if (filePath.endsWith(".git")) {
213
return "gitdir: ../.git/worktrees/repo-feature\n";
214
}
215
- if (filePath.includes(".git\\worktrees\\repo-feature\\HEAD")) {
216
+ if (normalizedPath.includes(".git/worktrees/repo-feature/HEAD")) {
217
return "ref: refs/heads/feature/worktree\n";
218
219
0 commit comments