Skip to content

Commit d350be2

Browse files
committed
test: fix typescript + cypress timeout
1 parent 444cf86 commit d350be2

File tree

1 file changed

+13
-9
lines changed
  • packages/@vue/cli-plugin-typescript

1 file changed

+13
-9
lines changed

packages/@vue/cli-plugin-typescript/index.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,19 @@ module.exports = (api, options) => {
5959
return options
6060
})
6161

62-
config
63-
.plugin('fork-ts-checker')
64-
.use(require('fork-ts-checker-webpack-plugin'), [{
65-
vue: true,
66-
tslint: options.lintOnSave !== false && fs.existsSync(api.resolve('tslint.json')),
67-
formatter: 'codeframe',
68-
// https://github.com/TypeStrong/ts-loader#happypackmode-boolean-defaultfalse
69-
checkSyntacticErrors: useThreads
70-
}])
62+
if (!process.env.VUE_CLI_TEST) {
63+
// this plugin does not play well with jest + cypress setup (tsPluginE2e.spec.js) somehow
64+
// so temporarily disabled for vue-cli tests
65+
config
66+
.plugin('fork-ts-checker')
67+
.use(require('fork-ts-checker-webpack-plugin'), [{
68+
vue: true,
69+
tslint: options.lintOnSave !== false && fs.existsSync(api.resolve('tslint.json')),
70+
formatter: 'codeframe',
71+
// https://github.com/TypeStrong/ts-loader#happypackmode-boolean-defaultfalse
72+
checkSyntacticErrors: useThreads
73+
}])
74+
}
7175
})
7276

7377
if (!api.hasPlugin('eslint')) {

0 commit comments

Comments
 (0)