View > Command Palette, Choose TestPair: Pair the Source/Test file.
Or Ctrl + Shift + P
Define your pair
{
"testPair.testFileExtensions": [
{
// the file extension.
"extension": "js",
// the glob pattern for test filenames, @@ as source filename.
// it will match filenames end with @@.spec.js or @@.test.js.
"testGlob": "@@{.spec,.test}.js",
// the glob pattern for source filenames, @@ as source filename.
// it will remove the test filename parts end with .spec.js or .test.js.
"sourceGlob": "@@{.spec,.test}",
// the glob pattern for source file extensions.
// if ignore it, the default is current file extension.
// it will match filename with the extension @@.js, @@.vue, @@.jsx
"sourceExt": "{js,vue,jsx}"
}
]
}