Skip to content

Commit c932177

Browse files
authored
fix: npm and test (diggsweden#59)
* fix: add missing mock and replace spy Add missing mock to get rid of warnings in the build Replace spy with stub to avoid warning in IDE Signed-off-by: Jesper Hellberg <extern.jesper.hellberg@digg.se> * fix: fail build on peer dependency conflict - Add strict-peer-deps to github actions and to local builds to fail build on warnings. - Updata npm Signed-off-by: Jesper Hellberg <extern.jesper.hellberg@digg.se> --------- Signed-off-by: Jesper Hellberg <extern.jesper.hellberg@digg.se>
1 parent 1e34285 commit c932177

File tree

5 files changed

+6028
-7052
lines changed

5 files changed

+6028
-7052
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
node-version: 20
1717

1818
- name: Install dependencies
19-
run: npm ci
19+
run: npm ci --strict-peer-deps
2020

2121
- name: Run tests
2222
run: npm run test

.npmrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66
always-auth=true
77

88
# must use for correct package-lock.json
9-
registry=https://registry.npmjs.org/
9+
registry=https://registry.npmjs.org/
10+
11+
strict-peer-deps=true

0 commit comments

Comments
 (0)