Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 5042aca

Browse files
qvalentinGimleux
andauthored
Feature/jest basics (#110)
* added one test * run tests in pipeline * update snapshot * Update FilesBreadcrumb.tsx Added Location to console.log Co-authored-by: Gimleux <[email protected]>
1 parent ae8fafe commit 5042aca

File tree

9 files changed

+535
-43
lines changed

9 files changed

+535
-43
lines changed

.github/workflows/cypressTests.yml renamed to .github/workflows/tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ on:
44
paths:
55
- 'webapp_frontend/src/**'
66
- 'webapp_frontend/cypress/**'
7-
- '.github/workflows/cypressTests.yml'
7+
- '.github/workflows/tests.yml'
88
- 'webapp_frontend/package.json'
99
jobs:
10-
cypress-run:
10+
runTests:
1111
runs-on: ubuntu-16.04
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v2
1515
# Install NPM dependencies, build the webpage and start it
1616
# and run all Cypress tests
17-
- name: Start FE
17+
- name: Start FE and run jest tests
1818
run: |
1919
cd webapp_frontend
2020
npm i
21+
npm test -- --watchAll=false
2122
npm start &
2223
- name: Wait
2324
uses: iFaxity/wait-on-action@v1

webapp_frontend/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webapp_frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@testing-library/user-event": "12.8.3",
99
"@types/bootstrap": "5.0.8",
1010
"@types/jest": "26.0.20",
11-
"@types/node": "14.14.34",
11+
"@types/node": "14.14.35",
1212
"@types/react": "17.0.3",
1313
"@types/react-bootstrap": "0.32.25",
1414
"@types/react-dom": "17.0.2",

0 commit comments

Comments
 (0)