We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f6ac1c commit bd74d2fCopy full SHA for bd74d2f
third-party/test/index.ts
@@ -122,7 +122,7 @@ function run(testsRoot, clb): any {
122
// 2020-03-24: Amazon addition.
123
// VSCode refuses to unset this value, so it gets set for each task and null is converted to a string
124
const testFile = process.env["TEST_FILE"] === 'null' ? undefined : process.env["TEST_FILE"]
125
- const testFilePath = testFile?.replace(/^src\/test\//, "")?.concat('.js')
+ const testFilePath = testFile?.replace(/^src[\\\/]test[\\\/]/, '')?.concat('.js')
126
127
const globalSetupPath = paths.join(testsRoot, 'globalSetup.test.js')
128
if (testFilePath && fs.existsSync(globalSetupPath)) {
0 commit comments