Events v2 demo branch #16842
lint-and-test.yml
on: pull_request
Prepare client tests
2m 16s
Setup tests
6s
Lint unused exports with Knip
5m 42s
Build toolkit
3m 18s
Matrix: Test client
Matrix: Test
Annotations
10 errors and 10 warnings
Test (packages/gateway)
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
|
Test (packages/gateway)
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
|
Test (packages/gateway)
Process completed with exit code 2.
|
src/service/deduplication/deduplication.test.ts > deduplication tests > does not find duplicates with completely different details:
packages/events/src/service/deduplication/deduplication.test.ts#L190
AssertionError: expected [ { score: 2, event: { …(3) } } ] to strictly equal []
- Expected
+ Received
- Array []
+ Array [
+ Object {
+ "event": Object {
+ "data": Object {
+ "child.DoB": "2011-11-11",
+ "child.familyName": "Smith",
+ "child.firstNames": "John",
+ "mother.DoB": "2000-11-11",
+ "mother.familyName": "Smith",
+ "mother.firstNames": "Mother",
+ "mother.identifier": "23412387",
+ },
+ "id": "b5293448-cb00-4800-a7dc-326997599fe2",
+ "transactionId": "f829d7f5-f818-4ffb-a3d9-965aa5458e78",
+ },
+ "score": 2,
+ },
+ ]
❯ src/service/deduplication/deduplication.test.ts:190:5
|
src/service/deduplication/deduplication.test.ts > deduplication tests > does not find duplicates with completely different details:
packages/events/src/service/deduplication/deduplication.test.ts#L210
AssertionError: expected [ { score: 2, event: { …(3) } } ] to strictly equal []
- Expected
+ Received
- Array []
+ Array [
+ Object {
+ "event": Object {
+ "data": Object {
+ "child.DoB": "2011-11-11",
+ "child.familyName": "Smith",
+ "child.firstNames": "John",
+ "mother.DoB": "2000-11-11",
+ "mother.familyName": "Smith",
+ "mother.firstNames": "Mother",
+ "mother.identifier": "23412387",
+ },
+ "id": "3578d529-7876-41d1-adea-c3a163f156bf",
+ "transactionId": "9368a082-9ca6-4fbe-8a77-7f720b5ebc2c",
+ },
+ "score": 2,
+ },
+ ]
❯ src/service/deduplication/deduplication.test.ts:210:5
|
src/service/deduplication/deduplication.test.ts > deduplication tests > finds no duplicate with different mother nid:
packages/events/src/service/deduplication/deduplication.test.ts#L284
AssertionError: expected [ { score: 2, event: { …(3) } } ] to have a length of +0 but got 1
- Expected
+ Received
- 0
+ 1
❯ src/service/deduplication/deduplication.test.ts:284:5
|
src/service/deduplication/deduplication.test.ts > deduplication tests > finds no duplicates with very different details:
packages/events/src/service/deduplication/deduplication.test.ts#L299
AssertionError: expected [ { score: 2, event: { …(3) } } ] to have a length of +0 but got 1
- Expected
+ Received
- 0
+ 1
❯ src/service/deduplication/deduplication.test.ts:299:5
|
src/service/deduplication/deduplication.test.ts > deduplication tests > same mother two births within 9 months of each other > births more than 9 months apart:
packages/events/src/service/deduplication/deduplication.test.ts#L341
AssertionError: expected [ { score: 2, event: { …(3) } } ] to strictly equal []
- Expected
+ Received
- Array []
+ Array [
+ Object {
+ "event": Object {
+ "data": Object {
+ "child.DoB": "2011-11-11",
+ "child.familyName": "Smith",
+ "child.firstNames": "John",
+ "mother.DoB": "2000-11-12",
+ "mother.familyName": "Smith",
+ "mother.firstNames": "Mother",
+ "mother.identifier": "23412387",
+ },
+ "id": "58e12ef3-dcaf-46ed-87c1-9edcf2dd79d6",
+ "transactionId": "ac5b4806-6335-4f01-a3ef-994fbd964450",
+ },
+ "score": 2,
+ },
+ ]
❯ src/service/deduplication/deduplication.test.ts:341:7
|
Test (packages/events)
Process completed with exit code 1.
|
Lint unused exports with Knip
Process completed with exit code 1.
|
Lint client:
packages/client/src/SubmissionController.test.ts#L33
Unexpected any. Specify a different type
|
Lint client:
packages/client/src/components/DateRangePickerForFormField.tsx#L33
Unexpected any. Specify a different type
|
Lint client:
packages/client/src/components/Query.tsx#L26
Unexpected any. Specify a different type
|
Lint client:
packages/client/src/components/SessionExpireConfirmation.tsx#L68
Unexpected any. Specify a different type
|
Lint client:
packages/client/src/components/form/FetchButton.tsx#L132
Unexpected any. Specify a different type
|
Lint client:
packages/client/src/components/form/FetchButton.tsx#L174
Unexpected any. Specify a different type
|
Lint client:
packages/client/src/components/form/FormFieldGenerator.test.tsx#L132
Unexpected any. Specify a different type
|
Lint client:
packages/client/src/components/form/FormFieldGenerator.tsx#L185
Unexpected any. Specify a different type
|
Lint client:
packages/client/src/components/form/FormFieldGenerator.tsx#L186
Unexpected any. Specify a different type
|
Lint client:
packages/client/src/components/form/FormFieldGenerator.tsx#L543
Unexpected any. Specify a different type
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
client
|
11.4 MB |
|