CICD - Unit | Integration | E2E #6
ci.yml
on: pull_request
Unit & Integration Tests
4m 1s
Annotations
13 errors and 2 warnings
|
Unit & Integration Tests
Error: ENOENT: no such file or directory, open '/home/runner/work/CAIT/CAIT/reports/coverage/integration/coverage-summary.json'
|
|
Unit & Integration Tests
Failed to parse the json-summary at path "/home/runner/work/CAIT/CAIT/reports/coverage/integration/coverage-summary.json."
Make sure to run vitest before this action and to include the "json-summary" reporter.
Original Error:
Error: ENOENT: no such file or directory, open '/home/runner/work/CAIT/CAIT/reports/coverage/integration/coverage-summary.json'
at async open (node:internal/fs/promises:637:25)
at async readFile (node:internal/fs/promises:1269:14)
at async s2 (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:103:2128)
at async lw (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:103:2209)
at async Lle (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:191:570)
|
|
Unit & Integration Tests
Process completed with exit code 1.
|
|
tests/unit/file.test.ts > addCoverPic > should add cover pic and associate with publication:
tests/unit/file.test.ts#L135
AssertionError: expected "spy" to be called with arguments: [ { data: { …(4) } } ]
Received:
1st spy call:
[
{
"data": {
"path": "coverPicPath",
- "publicationId": 1,
+ "publicationId": undefined,
"title": "cover.jpg",
"type": "image/jpeg",
},
},
]
Number of calls: 1
❯ tests/unit/file.test.ts:135:30
|
|
tests/unit/file.test.ts > coverPicFetcher > should return cover pic data if coverPic is provided:
tests/unit/file.test.ts#L105
AssertionError: expected Promise{…} to deeply equal { fileId: 'coverPicPath', …(1) }
- Expected
+ Received
- {
- "data": "Y292ZXJQaWNEYXRh",
- "fileId": "coverPicPath",
- }
+ Promise {}
❯ tests/unit/file.test.ts:105:18
|
|
tests/unit/file.test.ts > coverPicFetcher > should return default cover pic if coverPic is null:
tests/unit/file.test.ts#L85
AssertionError: expected Promise{…} to deeply equal { fileId: undefined, …(1) }
- Expected
+ Received
- {
- "data": "ZGVmYXVsdENvdmVyUGljRGF0YQ==",
- "fileId": undefined,
- }
+ Promise {}
❯ tests/unit/file.test.ts:85:18
|
|
tests/unit/file.test.ts > profilePicFetcher > should return profile pic data if profilePic is provided:
tests/unit/file.test.ts#L62
AssertionError: expected Promise{…} to deeply equal { fileId: 'profilePicPath', …(1) }
- Expected
+ Received
- {
- "data": "cHJvZmlsZVBpY0RhdGE=",
- "fileId": "profilePicPath",
- }
+ Promise {}
❯ tests/unit/file.test.ts:62:18
|
|
tests/unit/file.test.ts > profilePicFetcher > should return default profile pic if profilePic is null:
tests/unit/file.test.ts#L42
AssertionError: expected Promise{…} to deeply equal { fileId: undefined, …(1) }
- Expected
+ Received
- {
- "data": "ZGVmYXVsdFByb2ZpbGVQaWNEYXRh",
- "fileId": undefined,
- }
+ Promise {}
❯ tests/unit/file.test.ts:42:18
|
|
tests/unit/db.test.ts > getAllPublications > should return all publications if no filters are applied:
tests/unit/db.test.ts#L271
AssertionError: expected "spy" to be called with arguments: [ { where: { AND: [] }, …(1) } ]
Received:
1st spy call:
@@ -3,20 +3,26 @@
"include": {
"circuit": true,
"coverPic": true,
"materials": true,
"publisher": {
- "include": {
+ "select": {
+ "firstName": true,
+ "lastName": true,
"profilePic": true,
+ "username": true,
},
},
"tags": true,
"usedInCourse": {
"select": {
"course": true,
},
},
+ },
+ "orderBy": {
+ "createdAt": "desc",
},
"where": {
"AND": [],
},
},
Number of calls: 1
❯ tests/unit/db.test.ts:271:39
|
|
tests/unit/db.test.ts > getAllPublications > should return publications filtered by search query:
tests/unit/db.test.ts#L237
AssertionError: expected "spy" to be called with arguments: [ { where: { AND: [] }, …(1) } ]
Received:
1st spy call:
@@ -3,20 +3,26 @@
"include": {
"circuit": true,
"coverPic": true,
"materials": true,
"publisher": {
- "include": {
+ "select": {
+ "firstName": true,
+ "lastName": true,
"profilePic": true,
+ "username": true,
},
},
"tags": true,
"usedInCourse": {
"select": {
"course": true,
},
},
+ },
+ "orderBy": {
+ "createdAt": "desc",
},
"where": {
"AND": [],
},
},
Number of calls: 1
❯ tests/unit/db.test.ts:237:39
|
|
tests/unit/db.test.ts > getAllPublications > should return publications filtered by publisher IDs:
tests/unit/db.test.ts#L184
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ]
Received:
1st spy call:
@@ -3,20 +3,26 @@
"include": {
"circuit": true,
"coverPic": true,
"materials": true,
"publisher": {
- "include": {
+ "select": {
+ "firstName": true,
+ "lastName": true,
"profilePic": true,
+ "username": true,
},
},
"tags": true,
"usedInCourse": {
"select": {
"course": true,
},
},
+ },
+ "orderBy": {
+ "createdAt": "desc",
},
"where": {
"AND": [
{
"publisherId": {
Number of calls: 1
❯ tests/unit/db.test.ts:184:39
|
|
tests/unit/db.test.ts > getPublicationById > should return null if publication is not found:
tests/unit/db.test.ts#L99
AssertionError: expected "spy" to be called with arguments: [ { where: { id: 999 }, …(1) } ]
Received:
1st spy call:
@@ -45,19 +45,35 @@
"profilePic": true,
},
},
},
},
+ "course": {
+ "select": {
+ "courseName": true,
+ "educationalLevel": true,
+ "id": true,
+ "learningObjectives": true,
+ "prerequisites": true,
+ },
+ },
"coverPic": true,
"maintainers": {
"include": {
"profilePic": true,
},
},
"materials": {
"include": {
- "files": true,
+ "fileURLs": true,
+ "files": {
+ "select": {
+ "path": true,
+ "title": true,
+ "type": true,
+ },
+ },
"publication": true,
},
},
"publisher": {
"include": {
Number of calls: 1
❯ tests/unit/db.test.ts:99:41
|
|
tests/unit/db.test.ts > getPublicationById > should return a publication with the given id:
tests/unit/db.test.ts#L21
AssertionError: expected "spy" to be called with arguments: [ { where: { id: 1 }, …(1) } ]
Received:
1st spy call:
@@ -45,19 +45,35 @@
"profilePic": true,
},
},
},
},
+ "course": {
+ "select": {
+ "courseName": true,
+ "educationalLevel": true,
+ "id": true,
+ "learningObjectives": true,
+ "prerequisites": true,
+ },
+ },
"coverPic": true,
"maintainers": {
"include": {
"profilePic": true,
},
},
"materials": {
"include": {
- "files": true,
+ "fileURLs": true,
+ "files": {
+ "select": {
+ "path": true,
+ "title": true,
+ "type": true,
+ },
+ },
"publication": true,
},
},
"publisher": {
"include": {
Number of calls: 1
❯ tests/unit/db.test.ts:21:41
|
|
Unit & Integration Tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, actions/upload-artifact@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Unit & Integration Tests
No files were found with the provided path: reports/coverage/integration. No artifacts will be uploaded.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
coverage-unit
Expired
|
186 KB |
sha256:fc896a3c91f6d4200102d1324df83c4bc6fb282dcfeaead69cb6c66aaa9f51a8
|
|