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) => {
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' ) ) {
You can’t perform that action at this time.
0 commit comments