Skip to content

Commit afb1064

Browse files
committed
Enhance CI workflow by adding a step to reinstall dependencies for proper resolution and update TypeScript event handler to specify coeffects type, improving type safety in tests.
1 parent 1d1e430 commit afb1064

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Install specific TypeScript version
2929
run: npm install --save-dev typescript@${{ matrix.typescript }}
3030

31+
- name: Reinstall dependencies to ensure proper resolution
32+
run: npm ci
33+
3134
- name: Build with TypeScript ${{ matrix.typescript }}
3235
run: npm run build
3336

src/tests/cofx.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('regCofx - Co-Effects', () => {
2121
let capturedCoeffects: CoEffects | null = null;
2222

2323
// Register an event that captures coeffects
24-
regEvent('test-db-cofx', (coeffects) => {
24+
regEvent('test-db-cofx', (coeffects: CoEffects) => {
2525
capturedCoeffects = coeffects;
2626
});
2727

0 commit comments

Comments
 (0)