Skip to content

Commit 158105a

Browse files
pokeyfidgetingbits
authored and
fidgetingbits
committed
Add launch config to update unit test fixtures (cursorless-dev#1956)
- Extracted from cursorless-dev#1815 ## 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 709dfb7 commit 158105a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.vscode/launch.json

+17
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,23 @@
156156
"!**/node_modules/**"
157157
]
158158
},
159+
{
160+
"name": "Update fixtures, unit tests only",
161+
"type": "node",
162+
"request": "launch",
163+
"program": "${workspaceFolder}/packages/test-harness/out/scripts/runUnitTestsOnly",
164+
"env": {
165+
"CURSORLESS_TEST": "true",
166+
"CURSORLESS_TEST_UPDATE_FIXTURES": "true",
167+
"CURSORLESS_REPO_ROOT": "${workspaceFolder}"
168+
},
169+
"outFiles": ["${workspaceFolder}/**/out/**/*.js"],
170+
"preLaunchTask": "${defaultBuildTask}",
171+
"resolveSourceMapLocations": [
172+
"${workspaceFolder}/**",
173+
"!**/node_modules/**"
174+
]
175+
},
159176
{
160177
"name": "Docusaurus start",
161178
"type": "node",

0 commit comments

Comments
 (0)