Skip to content

Commit 47f4da9

Browse files
Configure eslint (#56)
* Fix #54 * Pass jest with no tests
1 parent 0fec8ae commit 47f4da9

File tree

4 files changed

+4205
-2776
lines changed

4 files changed

+4205
-2776
lines changed

ci/test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
set -e
4+
35
docker-compose up -d
46
helm lint api/helm/api/
57
sleep 20
@@ -13,7 +15,8 @@ docker-compose exec php bin/console doctrine:schema:drop --env=test --force
1315
docker-compose exec php bin/console cache:warmup --env=test
1416
docker-compose exec php bin/behat --format=progress
1517
docker-compose exec client yarn install --pure-lockfile
16-
docker-compose exec client yarn jest --ci --reporters=default --reporters=jest-junit
18+
docker-compose exec client yarn jest --ci --reporters=default --reporters=jest-junit --passWithNoTests
19+
docker-compose exec client yarn eslint src
1720
curl -s http://localhost # Client
1821
curl -s http://localhost:81 # Admin
1922
curl -s http://localhost:8080 # API

client/.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "react-app"
3+
}

client/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
},
1818
"devDependencies": {
1919
"jest-junit": "^5.2.0",
20-
"react-scripts": "1.1.4"
20+
"react-scripts": "^2.0.3"
2121
},
2222
"scripts": {
2323
"start": "react-scripts start",
2424
"build": "react-scripts build",
25-
"test": "react-scripts test --env=jsdom",
25+
"test": "react-scripts test",
2626
"eject": "react-scripts eject"
2727
},
2828
"jest": {
@@ -34,5 +34,11 @@
3434
"/node_modules/",
3535
"/features"
3636
]
37-
}
37+
},
38+
"browserslist": [
39+
">0.2%",
40+
"not dead",
41+
"not ie <= 11",
42+
"not op_mini all"
43+
]
3844
}

0 commit comments

Comments
 (0)