ReflectionsProjections / rp-api-2023

Core Backend API Layer for Reflections | Projections 2023, powered by Nest.js
MIT License
0 stars 0 forks source link

Add carp endpoints for serving resumes #43

Closed atharvanaik10 closed 1 year ago

github-actions[bot] commented 1 year ago

Coverage report

❌ An unexpected error occurred. For more details, check console

Error: The process '/opt/hostedtoolcache/node/16.20.2/x64/bin/npx' failed with exit code 1
St.:grey_question:
Category Percentage Covered / Total
🟑 Statements
62.93% (-1.18% πŸ”»)
489/777
πŸ”΄ Branches
9.09% (-5.05% πŸ”»)
9/99
πŸ”΄ Functions
25.47% (-1.8% πŸ”»)
27/106
🟑 Lines
60.28% (-1.43% πŸ”»)
425/705
Show new covered files 🐣
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------- | :--------- | :------- | :-------- | :----- | | 🟒 |
`...` / carp.controller.ts
| 90% | 100% | 50% | 87.5% | | πŸ”΄ |
`...` / carp.service.ts
| 61.54% | 100% | 50% | 54.55% | | 🟒 | carp/carp.module.ts | 100% | 100% | 100% | 100% | | πŸ”΄ |
`...` / upload-s3.dto.ts
| 0% | 100% | 100% | 0% |
Show files with reduced coverage πŸ”»
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------- | :-------------------------------------------------------------- | :---------------------------------------------------------- | :------------------------------------------------------------ | :-------------------------------------------------------------- | | πŸ”΄ |
`...` / attendees.service.ts
|
45.45% (-11.21% πŸ”»)
| 37.5% |
27.27% (-12.73% πŸ”»)
|
41.94% (-11.64% πŸ”»)
| | πŸ”΄ | s3/s3.service.ts |
28.57% (-6.43% πŸ”»)
| 0% |
25% (-8.33% πŸ”»)
|
23.08% (-4.7% πŸ”»)
| | πŸ”΄ |
`...` / attendees.controller.ts
|
34.88% (-4.88% πŸ”»)
|
0% (-22.73% πŸ”»)
|
8.33% (-9.85% πŸ”»)
|
33.33% (-4.94% πŸ”»)
|

Test suite run failed

Failed tests: 1/19. Failed suites: 4/15.
``` ● AttendeeService β€Ί create populates fields correctly TypeError: Cannot read properties of undefined (reading 'tree') 55 | interest_mech_puzzle: createAttendeeDto.mechPuzzle, 56 | }; > 57 | const newAttendee = new this.attendeeModel(attendee); | ^ 58 | return newAttendee.save().then((createdAttendee) => { 59 | console.log(createdAttendee._id); // Print the ID to the console 60 | return createdAttendee; at Model.Object..Document.$__setSchema (../node_modules/mongoose/lib/document.js:3506:18) at Model.Document (../node_modules/mongoose/lib/document.js:90:10) at new Model (../node_modules/mongoose/lib/model.js:122:12) at AttendeeService.create (attendees/attendees.service.ts:57:25) at Object. (attendees/attendees.service.spec.ts:116:38) ``` --- ``` ● Test suite failed to run src/attendees/attendees.controller.spec.ts:29:42 - error TS2554: Expected 1 arguments, but got 0. 29 { provide: 'S3Client', useValue: new S3Client() }, ~~~~~~~~~~~~~~ node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts:292:17 292 constructor(configuration: S3ClientConfig); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An argument for 'configuration' was not provided. ``` --- ``` ● Test suite failed to run src/carp/carp.service.spec.ts:18:42 - error TS2554: Expected 1 arguments, but got 0. 18 { provide: 'S3Client', useValue: new S3Client() }, ~~~~~~~~~~~~~~ node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts:292:17 292 constructor(configuration: S3ClientConfig); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An argument for 'configuration' was not provided. ``` --- ``` ● Test suite failed to run src/s3/s3.service.spec.ts:11:52 - error TS2554: Expected 1 arguments, but got 0. 11 providers: [{ provide: 'S3Client', useValue: new S3Client() }, S3Service], ~~~~~~~~~~~~~~ node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts:292:17 292 constructor(configuration: S3ClientConfig); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An argument for 'configuration' was not provided. ```

Report generated by πŸ§ͺjest coverage report action from 92803fc58391694600f3213e57c308e2b0a56bd0

xuxey commented 1 year ago

Closing -- See #44