Skip to content

Commit a70c889

Browse files
Support / on windows for fixtures grep (#2049)
Can now on windows use `/` in `testSubsetGrep.properties` Fixes #1779 ## Checklist - [-] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [-] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [-] I have not broken the cheatsheet
1 parent 6de055b commit a70c889

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/common/src/testUtil/getFixturePaths.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export function getRecordedTestPaths() {
2828
return walkFilesSync(directory)
2929
.filter((p) => p.endsWith(".yml") || p.endsWith(".yaml"))
3030
.map((p) => ({
31-
name: path.relative(relativeDir, p.substring(0, p.lastIndexOf("."))),
31+
name: path
32+
.relative(relativeDir, p.substring(0, p.lastIndexOf(".")))
33+
.replaceAll("\\", "/"),
3234
path: p,
3335
}));
3436
}

0 commit comments

Comments
 (0)