fix(mocha): do not ignore JavaScript tests when TypeScript plugin is installed (#6560)

This commit is contained in:
Juan
2021-07-02 10:32:02 +02:00
committed by GitHub
parent 882aaca1fc
commit 70afd90ca3
+1 -1
View File
@@ -73,7 +73,7 @@ module.exports = api => {
? []
: [
api.hasPlugin('typescript')
? `tests/unit/**/*.spec.ts`
? `tests/unit/**/*.spec.[jt]s`
: `tests/unit/**/*.spec.js`
])
]