Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A generic CI for GitLab CI, for ReactJS test cases, if you do not have separate client/server architecture you will not need 1st line of `script`,
image: node:8.11.3
- cd client && npm install
- CI=true npm test
- master
# To manage things more clean you can create a folder inside src named `__tests__` and tests will work just fine
# File extension must be Filename.test.js
# Since JS is extension add `--env=jsdom` in test script in package.json
# Example : "test": "react-scripts test --env=jsdom"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.