Introduce basic js unit tests

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-12-02 11:19:39 +01:00
parent 88cba1629d
commit 2f25fa0ca6
23 changed files with 2345 additions and 185 deletions

View File

@@ -40,7 +40,7 @@ lint:
- cd js
- yarn install
#- yarn run lint || export EXITVALUE=1
- yarn run prettier --ignore-path="src/i18n/*" -c . || export EXITVALUE=1
- yarn run prettier -c . || export EXITVALUE=1
- yarn run build
- cd ../
- exit $EXITVALUE
@@ -78,6 +78,21 @@ exunit:
- lint
script:
- mix coveralls
jest:
stage: test
before_script:
- cd js
- yarn install
dependencies:
- lint
script:
- yarn run test:unit --no-color
artifacts:
when: always
paths:
- js/coverage
expire_in: 30 days
# cypress:
# stage: test
# services: