Code change pipeline to development by @GeorgeGoodall-GovUk #671
base.yml
on: push
detect-environments
2s
run-tests
/
test
3m 6s
Matrix: deploy-changes
Waiting for pending jobs
Annotations
6 errors and 1 warning
test/unit/issueDetailsPage.test.js > issueDetails.html(seed: 1728304288147) > Dataset visualisation: Maps > should render a map when geometries are passed in:
src/utils/custom-renderer.js#L43
ValiError: Invalid type: Expected string but received undefined
❯ Module.parse node_modules/valibot/dist/index.js:5219:11
❯ Module.render src/utils/custom-renderer.js:43:18
❯ Object.render src/serverSetup/nunjucks.js:17:27
❯ test/unit/issueDetailsPage.test.js:189:32
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { kind: 'schema', type: 'string', input: undefined, expected: 'string', received: 'undefined', message: 'Invalid type: Expected string but received undefined', requirement: undefined, path: [ { type: 'object', origin: 'value', input: { organisation: { name: 'pariatur in in', organisation: 'aliquip culpa', entity: -1429189.695045352 }, dataset: { name: 'cupidatat commodo', dataset: 'non', collection: 'fugiat ea' }, errorHeading: 'veniam minim eu', issueItems: [ { html: 'magna consequat aute', href: 'ea officia' }, { html: 'nulla', href: 'labore do' } ], entry: { title: 'sit in consequat', fields: [ { key: { text: 'exercitation' }, value: { html: 'non exercitation quis' }, classes: 'esse Duis' }, { key: { text: 'aliqua non' }, value: { html: 'ex Excepteur in' }, classes: 'commodo velit' } ], geometries: [ 'POINT(0 0)' ] }, issueType: 'commodo' }, key: 'issueField', value: undefined } ], issues: undefined, lang: undefined, abortEarly: undefined, abortPipeEarly: undefined } ] }
|
test/unit/issueDetailsPage.test.js > issueDetails.html(seed: 1728304288147) > Dataset visualisation: Maps > should not render a map when no geometries are passed in:
src/utils/custom-renderer.js#L43
ValiError: Invalid type: Expected string but received undefined
❯ Module.parse node_modules/valibot/dist/index.js:5219:11
❯ Module.render src/utils/custom-renderer.js:43:18
❯ Object.render src/serverSetup/nunjucks.js:17:27
❯ test/unit/issueDetailsPage.test.js:212:32
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { kind: 'schema', type: 'string', input: undefined, expected: 'string', received: 'undefined', message: 'Invalid type: Expected string but received undefined', requirement: undefined, path: [ { type: 'object', origin: 'value', input: { organisation: { name: 'pariatur in in', organisation: 'aliquip culpa', entity: -1429189.695045352 }, dataset: { name: 'cupidatat commodo', dataset: 'non', collection: 'fugiat ea' }, errorHeading: 'veniam minim eu', issueItems: [ { html: 'magna consequat aute', href: 'ea officia' }, { html: 'nulla', href: 'labore do' } ], entry: { title: 'sit in consequat', fields: [ { key: { text: 'exercitation' }, value: { html: 'non exercitation quis' }, classes: 'esse Duis' }, { key: { text: 'aliqua non' }, value: { html: 'ex Excepteur in' }, classes: 'commodo velit' } ], geometries: [] }, issueType: 'commodo' }, key: 'issueField', value: undefined } ], issues: undefined, lang: undefined, abortEarly: undefined, abortPipeEarly: undefined } ] }
|
test/unit/middleware/issueDetails.middleware.test.js > issueDetails.middleware.js > prepareIssueDetailsTemplateParams > should correctly set the template params:
test/unit/middleware/issueDetails.middleware.test.js#L113
AssertionError: expected { organisation: { …(2) }, …(8) } to deeply equal { organisation: { …(2) }, …(8) }
- Expected
+ Received
Object {
"dataset": Object {
"collection": "mock-collection",
"dataset": "mock-dataset",
"name": "mock dataset",
},
"entry": Object {
"fields": Array [
Object {
"classes": "dl-summary-card-list__row--error",
"key": Object {
"text": "start-date",
},
"value": Object {
"html": "<p class=\"govuk-error-message\">mock message</p>02-02-2022",
},
},
],
"geometries": Array [],
- "title": "entry: 1",
+ "title": "entry: undefined",
},
"errorHeading": "mockMessageFor: 0",
"issueEntitiesCount": 1,
+ "issueField": "test-issue-field",
"issueItems": Array [
Object {
- "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/1",
+ "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/entry/1",
"html": "mock task message 1 in record 1",
},
],
"issueType": "test-issue-type",
"organisation": Object {
"name": "mock lpa",
"organisation": "ORG",
},
- "pageNumber": 1,
"pagination": Object {
"items": Array [
Object {
- "current": true,
- "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/1",
+ "current": false,
+ "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/entry/1",
"number": 1,
"type": "number",
},
],
+ "next": Object {
+ "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/entry/undefined",
+ },
},
}
❯ test/unit/middleware/issueDetails.middleware.test.js:113:34
|
test/unit/middleware/issueDetails.middleware.test.js > issueDetails.middleware.js > prepareIssueDetailsTemplateParams > should correctly set the template params with the correct geometry params:
test/unit/middleware/issueDetails.middleware.test.js#L222
AssertionError: expected { organisation: { …(2) }, …(8) } to deeply equal { organisation: { …(2) }, …(8) }
- Expected
+ Received
Object {
"dataset": Object {
"collection": "mock-collection",
"dataset": "mock-dataset",
"name": "mock dataset",
},
"entry": Object {
"fields": Array [
Object {
"classes": "dl-summary-card-list__row--error",
"key": Object {
"text": "start-date",
},
"value": Object {
"html": "<p class=\"govuk-error-message\">mock message</p>02-02-2022",
},
},
Object {
"classes": "",
"key": Object {
"text": "geometry",
},
"value": Object {
"html": "POINT(0 0)",
},
},
],
"geometries": Array [
"POINT(0 0)",
],
- "title": "entry: 1",
+ "title": "entry: undefined",
},
"errorHeading": "mockMessageFor: 0",
"issueEntitiesCount": 1,
+ "issueField": "test-issue-field",
"issueItems": Array [
Object {
- "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/1",
+ "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/entry/1",
"html": "mock task message 1 in record 1",
},
],
"issueType": "test-issue-type",
"organisation": Object {
"name": "mock lpa",
"organisation": "ORG",
},
- "pageNumber": 1,
"pagination": Object {
"items": Array [
Object {
- "current": true,
- "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/1",
+ "current": false,
+ "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/entry/1",
"number": 1,
"type": "number",
},
],
+ "next": Object {
+ "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/entry/undefined",
+ },
},
}
❯ test/unit/middleware/issueDetails.middleware.test.js:222:34
|
test/unit/middleware/issueDetails.middleware.test.js > issueDetails.middleware.js > getIssueDetails > should call render using the provided template params and correct view:
test/unit/middleware/issueDetails.middleware.test.js#L286
AssertionError: expected "spy" to be called 1 times, but got 0 times
❯ test/unit/middleware/issueDetails.middleware.test.js:286:26
|
run-tests / test
Process completed with exit code 1.
|
run-tests / test
No files were found with the provided path: playwright-report/. No artifacts will be uploaded.
|