File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
packages/@vue/cli-plugin-typescript Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,19 @@ module.exports = (api, options) => {
59
59
return options
60
60
} )
61
61
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
+ }
71
75
} )
72
76
73
77
if ( ! api . hasPlugin ( 'eslint' ) ) {
You can’t perform that action at this time.
0 commit comments