Skip to content

Commit 47c7d84

Browse files
added test stage
1 parent 3caaffc commit 47c7d84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jenkins/scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ echo 'installing this dependency, it would typically be done so using this'
1010
echo 'flag. For a comprehensive explanation about "devDependencies", see'
1111
echo 'https://stackoverflow.com/questions/18875674/whats-the-difference-between-dependencies-devdependencies-and-peerdependencies.'
1212
set -x
13-
# npm install --save-dev cross-env
13+
npm install --save-dev cross-env
1414
set +x
1515

1616
echo 'The following "npm" command tests that your simple Node.js/React'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"start": "react-scripts start",
1212
"build": "react-scripts build",
13-
"test": "react-scripts test --env=jsdom",
13+
"test": "test": "cross-env CI=true react-scripts test --env=jsdom",
1414
"eject": "react-scripts eject"
1515
}
1616
}

0 commit comments

Comments
 (0)