mercredi 24 juin 2020

Are test files ignored when production build?

I made test files in CRA project. If I run production build, test files are ignored automatically?

Here is my project structure.

> 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"
  },

Aucun commentaire:

Enregistrer un commentaire