生产构建时会忽略测试文件吗?

时间:2020-06-25 01:41:20

标签: testing npm build

我在CRA项目中制作了测试文件。如果我运行生产版本,会自动忽略测试文件吗?

这是我的项目结构。

> src
  > page
    > franchise
      > franchise.js
      > franchise.test.js

package.json

  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

0 个答案:

没有答案