Skip to content

Commit 70afd90

Browse files
authored
fix(mocha): do not ignore JavaScript tests when TypeScript plugin is installed (#6560)
1 parent 882aaca commit 70afd90

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-plugin-unit-mocha

1 file changed

+1
-1
lines changed

packages/@vue/cli-plugin-unit-mocha/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = api => {
7373
? []
7474
: [
7575
api.hasPlugin('typescript')
76-
? `tests/unit/**/*.spec.ts`
76+
? `tests/unit/**/*.spec.[jt]s`
7777
: `tests/unit/**/*.spec.js`
7878
])
7979
]

0 commit comments

Comments
 (0)