Switch between the code and the test file.
On MacOS, press Shift+Cmd+T
.
On Windows / Linux, press Shift+Ctrl+T
.
You can add your own formats by editing jump-to-tests.rules
.
Here"s what it would look like to add Ruby on Rails support:
"jump-to-tests.rules": [
{
"extensions": [
{ "ext": ".ts", "testExt": [".test.ts", ".test.tsx"] },
{ "ext": ".tsx", "testExt": [".test.tsx", ".test.ts"] },
],
"srcDirs": ["src", "client", "server"],
"testDirs": ["src/test", "src/__tests__", "tests/client", "tests/server", "test", "__tests__"]
}
]
See CHANGELOG.md.
- Test Switcher (Based on this)
- Rails Go to Spec
- File Switcher