-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixes #1749 - Will do a `pnpm remove` on all our typedoc dependencies once #1745 is merged so we don't get massive merge conflicts on our `pnpm.lock` 😅 - Our website deploy has gone from more than 12 minutes to 1 min 20 sec 🙌 ## 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
- Loading branch information
Showing
7 changed files
with
66 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
packages/cursorless-engine/src/testCaseRecorder/RecordTestCaseCommandOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { ExtraSnapshotField } from "@cursorless/common"; | ||
|
||
/** | ||
* This is the type of the `recordTestCase` command's argument. It is used to | ||
* specify the options for recording a test case. | ||
*/ | ||
export interface RecordTestCaseCommandOptions { | ||
/** | ||
* If this is set to `true`, then for each test case that we record, we expect | ||
* that the user will issue a second command in each phrase, which refers to a | ||
* decorated mark whose range we'd like to check that it got updated properly | ||
* during the previous command. We use this functionality in order to check | ||
* that the token range update works properly. For example, you might say | ||
* `"chuck second car ox air take air"` to check that removing a character | ||
* from a token properly updates the token. | ||
*/ | ||
isHatTokenMapTest?: boolean; | ||
|
||
/** If true decorations will be added to the test fixture */ | ||
isDecorationsTest?: boolean; | ||
|
||
/** | ||
* The directory in which to store the test cases that we record. If left out | ||
* the user will be prompted to select a directory within the default recorded | ||
* test case directory. | ||
*/ | ||
directory?: string; | ||
|
||
/** | ||
* If `true`, don't show a little pop up each time to indicate we've recorded a | ||
* test case | ||
*/ | ||
isSilent?: boolean; | ||
|
||
extraSnapshotFields?: ExtraSnapshotField[]; | ||
|
||
/** | ||
* Whether to flash a background for calibrating a video recording | ||
*/ | ||
showCalibrationDisplay?: boolean; | ||
|
||
/** | ||
* Whether we should record a tests which yield errors in addition to tests | ||
* which do not error. | ||
*/ | ||
recordErrors?: boolean; | ||
|
||
/** | ||
* Whether to capture the `that` mark returned by the action. | ||
*/ | ||
captureFinalThatMark?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.