Skip to content

Commit 16cad91

Browse files
Merge pull request #57 from vincentchalamon/feature/jest
Add jest-junit
2 parents b1e0226 + 67369c0 commit 16cad91

File tree

3 files changed

+771
-39
lines changed

3 files changed

+771
-39
lines changed

ci/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ docker-compose exec php bin/console hautelook:fixtures:load -n
1212
docker-compose exec php bin/console doctrine:schema:drop --env=test --force
1313
docker-compose exec php bin/console cache:warmup --env=test
1414
docker-compose exec php bin/behat --format=progress
15+
docker-compose exec client yarn install --pure-lockfile
16+
docker-compose exec client yarn jest --ci --reporters=default --reporters=jest-junit
1517
curl -s http://localhost # Client
1618
curl -s http://localhost:81 # Admin
1719
curl -s http://localhost:8080 # API

client/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,23 @@
1616
"redux-thunk": "^2.2.0"
1717
},
1818
"devDependencies": {
19+
"jest-junit": "^5.2.0",
1920
"react-scripts": "1.1.4"
2021
},
2122
"scripts": {
2223
"start": "react-scripts start",
2324
"build": "react-scripts build",
2425
"test": "react-scripts test --env=jsdom",
2526
"eject": "react-scripts eject"
27+
},
28+
"jest": {
29+
"reporters": [
30+
"default",
31+
"jest-junit"
32+
],
33+
"testPathIgnorePatterns": [
34+
"/node_modules/",
35+
"/features"
36+
]
2637
}
2738
}

0 commit comments

Comments
 (0)