Gracefully handle file upload persistence errors by clearing state #1225
Annotations
22 errors and 1 warning
|
EditorConfig (Node 22)
Process completed with exit code 1.
|
|
Prettier (Node 22)
Process completed with exit code 1.
|
|
EditorConfig (Node 24)
Process completed with exit code 1.
|
|
EditorConfig (Node 23)
Process completed with exit code 1.
|
|
Prettier (Node 24)
Process completed with exit code 1.
|
|
ESLint (Node 24)
Process completed with exit code 1.
|
|
Prettier (Node 23)
Process completed with exit code 1.
|
|
ESLint (Node 22)
Process completed with exit code 1.
|
|
ESLint (Node 23)
Process completed with exit code 1.
|
|
Unit tests (Node 24)
Process completed with exit code 1.
|
|
Nunjucks context › Crumb › should generate crumb when state exists:
src/server/plugins/nunjucks/context.js#L51
TypeError: Cannot read properties of undefined (reading 'flash')
at flash (src/server/plugins/nunjucks/context.js:51:36)
at Object.<anonymous> (src/server/plugins/nunjucks/context.test.js:128:38)
|
|
Nunjucks context › Crumb › should handle malformed requests with missing state:
src/server/plugins/nunjucks/context.js#L51
TypeError: Cannot read properties of undefined (reading 'flash')
at flash (src/server/plugins/nunjucks/context.js:51:36)
at Object.<anonymous> (src/server/plugins/nunjucks/context.test.js:95:38)
|
|
Submission journey test › POST /file-upload-component returns 303:
test/form/persist-files.test.js#L209
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
[{"fileId": "a9e7470b-86a5-4826-a908-360a36aac71d", "initiatedRetrievalKey": "foo.bar@defra.gov.uk"}, {"fileId": "a9e7470b-86a5-4826-a908-360a36aac72a", "initiatedRetrievalKey": "foo.bar@defra.gov.uk"}],
- "enrique.chase@defra.gov.uk",
+ "defraforms@defra.gov.uk",
Number of calls: 1
at Object.toHaveBeenCalledWith (test/form/persist-files.test.js:209:26)
|
|
Unit tests (Node 23)
Process completed with exit code 1.
|
|
Nunjucks context › Crumb › should generate crumb when state exists:
src/server/plugins/nunjucks/context.js#L51
TypeError: Cannot read properties of undefined (reading 'flash')
at flash (src/server/plugins/nunjucks/context.js:51:36)
at Object.<anonymous> (src/server/plugins/nunjucks/context.test.js:128:38)
|
|
Nunjucks context › Crumb › should handle malformed requests with missing state:
src/server/plugins/nunjucks/context.js#L51
TypeError: Cannot read properties of undefined (reading 'flash')
at flash (src/server/plugins/nunjucks/context.js:51:36)
at Object.<anonymous> (src/server/plugins/nunjucks/context.test.js:95:38)
|
|
Submission journey test › POST /file-upload-component returns 303:
test/form/persist-files.test.js#L209
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
[{"fileId": "a9e7470b-86a5-4826-a908-360a36aac71d", "initiatedRetrievalKey": "foo.bar@defra.gov.uk"}, {"fileId": "a9e7470b-86a5-4826-a908-360a36aac72a", "initiatedRetrievalKey": "foo.bar@defra.gov.uk"}],
- "enrique.chase@defra.gov.uk",
+ "defraforms@defra.gov.uk",
Number of calls: 1
at Object.toHaveBeenCalledWith (test/form/persist-files.test.js:209:26)
|
|
Unit tests (Node 22)
Process completed with exit code 1.
|
|
Nunjucks context › Crumb › should generate crumb when state exists:
src/server/plugins/nunjucks/context.js#L51
TypeError: Cannot read properties of undefined (reading 'flash')
at flash (src/server/plugins/nunjucks/context.js:51:36)
at Object.<anonymous> (src/server/plugins/nunjucks/context.test.js:128:38)
|
|
Nunjucks context › Crumb › should handle malformed requests with missing state:
src/server/plugins/nunjucks/context.js#L51
TypeError: Cannot read properties of undefined (reading 'flash')
at flash (src/server/plugins/nunjucks/context.js:51:36)
at Object.<anonymous> (src/server/plugins/nunjucks/context.test.js:95:38)
|
|
Submission journey test › POST /file-upload-component returns 303:
test/form/persist-files.test.js#L209
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
[{"fileId": "a9e7470b-86a5-4826-a908-360a36aac71d", "initiatedRetrievalKey": "foo.bar@defra.gov.uk"}, {"fileId": "a9e7470b-86a5-4826-a908-360a36aac72a", "initiatedRetrievalKey": "foo.bar@defra.gov.uk"}],
- "enrique.chase@defra.gov.uk",
+ "defraforms@defra.gov.uk",
Number of calls: 1
at Object.toHaveBeenCalledWith (test/form/persist-files.test.js:209:26)
|
|
Check Pull Request
Canceling since a higher priority waiting request for Check Pull Request-refs/pull/275/merge exists
|
|
Vulnerability warning
This version of the SonarQube Scanner GitHub Action is no longer supported and contains a security vulnerability. Please update your workflow to use sonarsource/sonarqube-scan-action@v6 for the latest security patches and features. For more information visit https://community.sonarsource.com/gha-v6-update
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
Unit tests coverage (Node 22)
Expired
|
696 KB |
sha256:8bf324c46c9d8c3616aa91fd38d97a4e814580aef5d0ec381b35c73bbce207ff
|
|
|
Unit tests coverage (Node 23)
Expired
|
696 KB |
sha256:1f36eb0c72ac56efd1e3465370efd96e087d6f4d1170692b13e59ed2aaa3199f
|
|
|
Unit tests coverage (Node 24)
Expired
|
696 KB |
sha256:9557042be2fda37f9488b67a10b6cc41c3c54144d3dea3b2226cbb45867c51d1
|
|