Simply runs your test command found in the package.json
of your workspace root folder.
In a test file use the keyboard shortcut ⌥
+⌘
+t
and your test will run.
By default this extension will use read your current directory and determine if you use yarn
or npm
to run your tests. It assumes if any file with yarn
(ie yarn.lock
) is present that you use yarn
, otherwise it will assume you use npm
.
However if you find yourself in a situation where your project uses npm
but you still want to use yarn
to run your tests (or vice-versa) you can set the package manager in your vscode settings with the test-runner.packageManager
// settings.json
{
"test-runner": {
"packageManager": "yarn"
}
}
bug fix
- Fixed an issue where you could not test files in a project nested 2+ directories deep #15
enhancement
- Added the ability to use typescript test files #14
- Added logging in case of errors (see in Output > Test Runner tab) #14
- Improved test file resolution logic #14
enhancement
- Added the ability to set your preferred package manager using
test-runner.packageManager
#10
enhancement
- Added the ability to attempt to run tests from respective file #6
enhancement
- Added the ability to run tests in directories with nested
package.json
#4
🐛
- Fixed bug preventing to start a new terminal if the first one was closed #3
🐛
- Fixed bug where the wrong workspace root folder was being selected
Initial release of test-runner