This is a simple extension that allows you to instantly open a corresponding test file and run it
Features
Spectre Test Open
spectre.spectre
From a code file, open the corresponding spec file
If no spec file is found, offer to create one
Spectre Test Run
spectre.test & spectre.test-watch
Run test on currently opened code/spec file
Run test on currently opened code/spec file in watch mode
NOTE the default test commands are pnpm test and pnpm test-watch. If your project uses different test commands in the scripts section of your package.json file, you can configure by following the below steps
Configuring a custom test command
Open your VSCode project/workspace
Using the command palette (Cmd+Shift+P on Mac) select Preferences: Open Workspace Settings (JSON)
Type your custom command in the following format "spectre.testCommand": "<your test command>". This will save your command in the .vscode/settings.json file
(Optional) add the .vscode workspace to your .gitignore if you do not wish to version control this file