1

There is no importing test codes. But the build process includes testing node modules(chai, sinon, nise...).

enter image description here

I added codes below on vue.config.js to exclude test files from build. (vue-cli-service build)

chainWebpack: (config) => {
    if (process.env.NODE_ENV === 'production') {
        config.module.rule('ts').exclude.add(/\.test\.ts$/);
    }
},

After adding this code, I got warnings like this. enter image description here

Is there any solution to exclude test files from build without warning??

Jae Woo Woo
  • 901
  • 1
  • 8
  • 19

1 Answers1

0

If tests are passing with a test command, the issue might be that tests are not excluded within the tsconfig used for the build (?).

yowainwright
  • 105
  • 1
  • 6