diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-15 22:59:12 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-15 22:59:12 +0200 |
commit | 7ddedbe3317c5d1947e881a270092324c271bdab (patch) | |
tree | 04a850af073a25aa6a9e119b53112f4261d79d15 /frontend/package.json | |
parent | Add tests for lobby and game fields in Player (diff) | |
download | seven-wonders-7ddedbe3317c5d1947e881a270092324c271bdab.tar.gz seven-wonders-7ddedbe3317c5d1947e881a270092324c271bdab.tar.bz2 seven-wonders-7ddedbe3317c5d1947e881a270092324c271bdab.zip |
Remove frontend test watch for gradle build
The CI environment variable is the only to launch the frontend tests in non-interactive mode. This variable was already properly set on CI and heroku, but when running local gradle builds, the watch was still a problem, hence this new script for one-shot tests in package.json.
Diffstat (limited to 'frontend/package.json')
-rw-r--r-- | frontend/package.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/frontend/package.json b/frontend/package.json index 57e7e295..da3260e8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -28,6 +28,7 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", + "test:oneshot": "set CI=true && react-scripts test --env=jsdom", "eject": "react-scripts eject" }, "eslintConfig": { |