diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-04-20 18:47:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-20 22:47:10 +0000 |
| commit | db3b3fb665bba7a063e038907efbc0a14d863d63 (patch) | |
| tree | e215aa00614c990ef1c0066f8ac2ae9a6043391f /tests/specs/README.md | |
| parent | f61e1a9796b551439a0fa266f5630a47974ddc91 (diff) | |
chore: auto-complete for __spec__.jsonc file (#23476)
This makes writing these tests a little easier.
Diffstat (limited to 'tests/specs/README.md')
| -rw-r--r-- | tests/specs/README.md | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/specs/README.md b/tests/specs/README.md index a23fa1ce6..d9c620aa7 100644 --- a/tests/specs/README.md +++ b/tests/specs/README.md @@ -76,9 +76,26 @@ a "steps" array. - `args` - A string (that will be spilt on whitespace into an args array) or an array of arguments. - `output` - Path to use to assert the output. -- `clean` (boolean) - Whether to empty the deno_dir before running the step. +- `cleanDenoDir` (boolean) - Whether to empty the deno_dir before running the + step. - `exitCode` (number) - Expected exit code. +### Auto-complete + +To get auto-complete for these files, add the following to a local +`.vscode/settings.json` file: + +```json +{ + "json.schemas": [{ + "fileMatch": [ + "__test__.jsonc" + ], + "url": "./tests/specs/schema.json" + }] +} +``` + ## `.out` files `.out` files are used to assert the output when running a test or test step. |
