Replaces sinon in libs/model #29057
CI.yml
on: pull_request
Matrix: Commonwealth Unit Tests
Matrix: Code Quality Recommendations
Matrix: Code Quality checks
Matrix: EVM Devnet Tests
Matrix: Commonwealth Integration Tests
Matrix: Detect Broken TS expect errors
Matrix: Commonwealth Mature E2E Tests
Matrix: Commonwealth E2E Tests
Matrix: Commonwealth E2E Tests Serial
Matrix: Upload Test Coverage Report
Annotations
24 errors and 12 warnings
EVM Devnet Tests (22)
Process completed with exit code 1.
|
Code Quality checks (22)
Type 'SinonSandbox' has no properties in common with type '{ triggerWorkflowStub?: Mock<[], Promise<any>> | undefined; getMessagesStub?: Mock<[], Promise<any[]>> | undefined; getSchedulesStub?: Mock<[], Promise<any[]>> | undefined; ... 4 more ...; unregisterClientRegistrationToken?: Mock<...> | undefined; }'.
|
Code Quality checks (22)
Type 'SinonSandbox' has no properties in common with type '{ triggerWorkflowStub?: Mock<[], Promise<any>> | undefined; getMessagesStub?: Mock<[], Promise<any[]>> | undefined; getSchedulesStub?: Mock<[], Promise<any[]>> | undefined; ... 4 more ...; unregisterClientRegistrationToken?: Mock<...> | undefined; }'.
|
Code Quality checks (22)
Type 'SinonSandbox' has no properties in common with type '{ triggerWorkflowStub?: Mock<[], Promise<any>> | undefined; getMessagesStub?: Mock<[], Promise<any[]>> | undefined; getSchedulesStub?: Mock<[], Promise<any[]>> | undefined; ... 4 more ...; unregisterClientRegistrationToken?: Mock<...> | undefined; }'.
|
Code Quality checks (22)
Type 'SinonSandbox' has no properties in common with type '{ triggerWorkflowStub?: Mock<[], Promise<any>> | undefined; getMessagesStub?: Mock<[], Promise<any[]>> | undefined; getSchedulesStub?: Mock<[], Promise<any[]>> | undefined; ... 4 more ...; unregisterClientRegistrationToken?: Mock<...> | undefined; }'.
|
Code Quality checks (22)
Type 'SinonSandbox' has no properties in common with type '{ triggerWorkflowStub?: Mock<[], Promise<any>> | undefined; getMessagesStub?: Mock<[], Promise<any[]>> | undefined; getSchedulesStub?: Mock<[], Promise<any[]>> | undefined; ... 4 more ...; unregisterClientRegistrationToken?: Mock<...> | undefined; }'.
|
Code Quality checks (22)
Type 'SinonSandbox' has no properties in common with type '{ triggerWorkflowStub?: Mock<[], Promise<any>> | undefined; getMessagesStub?: Mock<[], Promise<any[]>> | undefined; getSchedulesStub?: Mock<[], Promise<any[]>> | undefined; ... 4 more ...; unregisterClientRegistrationToken?: Mock<...> | undefined; }'.
|
Code Quality checks (22)
Type 'SinonSandbox' has no properties in common with type '{ triggerWorkflowStub?: Mock<[], Promise<any>> | undefined; getMessagesStub?: Mock<[], Promise<any[]>> | undefined; getSchedulesStub?: Mock<[], Promise<any[]>> | undefined; ... 4 more ...; unregisterClientRegistrationToken?: Mock<...> | undefined; }'.
|
Code Quality checks (22)
Type 'SinonSandbox' has no properties in common with type '{ triggerWorkflowStub?: Mock<[], Promise<any>> | undefined; getMessagesStub?: Mock<[], Promise<any[]>> | undefined; getSchedulesStub?: Mock<[], Promise<any[]>> | undefined; ... 4 more ...; unregisterClientRegistrationToken?: Mock<...> | undefined; }'.
|
Code Quality checks (22)
Type 'SinonSandbox' has no properties in common with type '{ triggerWorkflowStub?: Mock<[], Promise<any>> | undefined; getMessagesStub?: Mock<[], Promise<any[]>> | undefined; getSchedulesStub?: Mock<[], Promise<any[]>> | undefined; ... 4 more ...; unregisterClientRegistrationToken?: Mock<...> | undefined; }'.
|
Code Quality checks (22)
Type 'SinonSandbox' has no properties in common with type '{ triggerWorkflowStub?: Mock<[], Promise<any>> | undefined; getMessagesStub?: Mock<[], Promise<any[]>> | undefined; getSchedulesStub?: Mock<[], Promise<any[]>> | undefined; ... 4 more ...; unregisterClientRegistrationToken?: Mock<...> | undefined; }'.
|
Commonwealth E2E Tests (22)
Process completed with exit code 1.
|
Commonwealth Mature E2E Tests (22)
Process completed with exit code 1.
|
Commonwealth E2E Tests Serial (22)
Process completed with exit code 1.
|
test/integration/knock/chainEventCreated.spec.ts > chainEventCreated Event Handler > Community Stakes > should do nothing if there are no relevant subscriptions:
packages/commonwealth/test/integration/knock/chainEventCreated.spec.ts#L125
AssertionError: expected undefined to be true
- Expected:
true
+ Received:
undefined
❯ test/integration/knock/chainEventCreated.spec.ts:125:74
|
test/integration/knock/chainEventCreated.spec.ts > chainEventCreated Event Handler > Community Stakes > should execute triggerWorkflow with the appropriate data:
packages/commonwealth/test/integration/knock/chainEventCreated.spec.ts#L151
AssertionError: expected undefined to be true
- Expected:
true
+ Received:
undefined
❯ test/integration/knock/chainEventCreated.spec.ts:151:75
|
test/integration/knock/commentCreated.spec.ts > CommentCreated Event Handler > should do nothing if there are no relevant subscriptions:
packages/commonwealth/test/integration/knock/commentCreated.spec.ts#L175
AssertionError: expected undefined to be true
- Expected:
true
+ Received:
undefined
❯ test/integration/knock/commentCreated.spec.ts:175:72
|
test/integration/knock/commentCreated.spec.ts > CommentCreated Event Handler > should execute the triggerWorkflow function with appropriate data for a root comment:
packages/commonwealth/test/integration/knock/commentCreated.spec.ts#L202
AssertionError: The event handler should trigger a workflow: expected undefined to be true
- Expected:
true
+ Received:
undefined
❯ test/integration/knock/commentCreated.spec.ts:202:10
|
test/integration/knock/commentCreated.spec.ts > CommentCreated Event Handler > should execute the triggerWorkflow function with appropriate data for a reply comment:
packages/commonwealth/test/integration/knock/commentCreated.spec.ts#L247
AssertionError: The event handler should trigger a workflow: expected undefined to be true
- Expected:
true
+ Received:
undefined
❯ test/integration/knock/commentCreated.spec.ts:247:10
|
test/integration/knock/commentCreated.spec.ts > CommentCreated Event Handler > should not trigger workflow for mentioned users:
packages/commonwealth/test/integration/knock/commentCreated.spec.ts#L326
AssertionError: The event handler should trigger a workflow: expected undefined to be true
- Expected:
true
+ Received:
undefined
❯ test/integration/knock/commentCreated.spec.ts:326:10
|
test/integration/knock/snapshotProposalCreated.spec.ts > snapshotProposalCreated Event Handler > should do nothing if there are no relevant community alert subscriptions:
packages/commonwealth/test/integration/knock/snapshotProposalCreated.spec.ts#L108
AssertionError: expected undefined to be true
- Expected:
true
+ Received:
undefined
❯ test/integration/knock/snapshotProposalCreated.spec.ts:108:72
|
test/integration/knock/snapshotProposalCreated.spec.ts > snapshotProposalCreated Event Handler > should execute triggerWorkflow with the appropriate data:
packages/commonwealth/test/integration/knock/snapshotProposalCreated.spec.ts#L138
AssertionError: triggerWorkflow should be called once: expected undefined to be true
- Expected:
true
+ Received:
undefined
❯ test/integration/knock/snapshotProposalCreated.spec.ts:138:10
|
test/integration/knock/subscriptionPreferencesUpdated.spec.ts > subscriptionPreferencesUpdated > should delete all exiting email schedules if emails are disabled:
packages/commonwealth/test/integration/knock/subscriptionPreferencesUpdated.spec.ts#L95
AssertionError: expected undefined to be true
- Expected:
true
+ Received:
undefined
❯ test/integration/knock/subscriptionPreferencesUpdated.spec.ts:95:70
|
test/integration/knock/subscriptionPreferencesUpdated.spec.ts > subscriptionPreferencesUpdated > should create schedules if emails are enabled:
packages/commonwealth/test/integration/knock/subscriptionPreferencesUpdated.spec.ts#L139
AssertionError: expected undefined to be true
- Expected:
true
+ Received:
undefined
❯ test/integration/knock/subscriptionPreferencesUpdated.spec.ts:139:70
|
Code Quality Recommendations (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
EVM Devnet Tests (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Detect Broken TS expect errors (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Code Quality checks (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Commonwealth E2E Tests (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Commonwealth E2E Tests (22)
No files were found with the provided path: packages/commonwealth/test-results/. No artifacts will be uploaded.
|
Commonwealth Mature E2E Tests (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Commonwealth Mature E2E Tests (22)
No files were found with the provided path: packages/commonwealth/test-results/. No artifacts will be uploaded.
|
Commonwealth E2E Tests Serial (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Commonwealth Unit Tests (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Upload Test Coverage Report (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Commonwealth Integration Tests (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|