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 Saturday events to schedule API endpoint #53

Closed zhuangy47 closed 1 year ago

zhuangy47 commented 1 year ago

Fix date bounds to include Saturday.

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
61.71% (+2.23% πŸ”Ό)
490/794
πŸ”΄ Branches
9.01% (+1.49% πŸ”Ό)
10/111
πŸ”΄ Functions
25.23% (+2.16% πŸ”Ό)
27/107
πŸ”΄ Lines
59% (+2.17% πŸ”Ό)
426/722
Show files with reduced coverage πŸ”»
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------- | :------------------------------------------------------------- | :------- | :-------- | :------------------------------------------------------------- | | πŸ”΄ | s3/s3.service.ts |
28.57% (-3.69% πŸ”»)
| 0% | 25% |
23.08% (-4.51% πŸ”»)
|

Test suite run failed

Failed tests: 6/24. Failed suites: 1/15.
``` ● EventsController β€Ί should be defined Nest can't resolve dependencies of the CacheInterceptor (?, Reflector). Please make sure that the argument CACHE_MANAGER at index [0] is available in the RootTestModule context. Potential solutions: - Is RootTestModule a valid NestJS module? - If CACHE_MANAGER is a provider, is it part of the current RootTestModule? - If CACHE_MANAGER is exported from a separate @Module, is that module imported within RootTestModule? @Module({ imports: [ /* the Module containing CACHE_MANAGER */ ] }) 26 | 27 | beforeEach(async () => { > 28 | const module: TestingModule = await Test.createTestingModule({ | ^ 29 | imports: [ 30 | ConfigModule.forRoot(), 31 | JwtModule.register({ at TestingInjector.lookupComponentInParentModules (../node_modules/@nestjs/core/injector/injector.js:247:19) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/core/injector/injector.js:200:33) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/testing/testing-injector.js:19:45) at resolveParam (../node_modules/@nestjs/core/injector/injector.js:120:38) at async Promise.all (index 0) at TestingInjector.resolveConstructorParams (../node_modules/@nestjs/core/injector/injector.js:135:27) at TestingInjector.loadInstance (../node_modules/@nestjs/core/injector/injector.js:61:13) at TestingInjector.loadInjectable (../node_modules/@nestjs/core/injector/injector.js:84:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:80:13 at async Promise.all (index 2) at TestingInstanceLoader.createInstancesOfInjectables (../node_modules/@nestjs/core/injector/instance-loader.js:79:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:41:13 at async Promise.all (index 1) at TestingInstanceLoader.createInstances (../node_modules/@nestjs/core/injector/instance-loader.js:39:9) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/core/injector/instance-loader.js:22:13) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-instance-loader.js:9:9) at TestingModuleBuilder.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-module.builder.js:97:9) at TestingModuleBuilder.compile (../node_modules/@nestjs/testing/testing-module.builder.js:63:9) at Object. (events/events.controller.spec.ts:28:35) ● EventsController β€Ί registerAttendeeWithEmail throws exception if user with email is not found Nest can't resolve dependencies of the CacheInterceptor (?, Reflector). Please make sure that the argument CACHE_MANAGER at index [0] is available in the RootTestModule context. Potential solutions: - Is RootTestModule a valid NestJS module? - If CACHE_MANAGER is a provider, is it part of the current RootTestModule? - If CACHE_MANAGER is exported from a separate @Module, is that module imported within RootTestModule? @Module({ imports: [ /* the Module containing CACHE_MANAGER */ ] }) 26 | 27 | beforeEach(async () => { > 28 | const module: TestingModule = await Test.createTestingModule({ | ^ 29 | imports: [ 30 | ConfigModule.forRoot(), 31 | JwtModule.register({ at TestingInjector.lookupComponentInParentModules (../node_modules/@nestjs/core/injector/injector.js:247:19) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/core/injector/injector.js:200:33) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/testing/testing-injector.js:19:45) at resolveParam (../node_modules/@nestjs/core/injector/injector.js:120:38) at async Promise.all (index 0) at TestingInjector.resolveConstructorParams (../node_modules/@nestjs/core/injector/injector.js:135:27) at TestingInjector.loadInstance (../node_modules/@nestjs/core/injector/injector.js:61:13) at TestingInjector.loadInjectable (../node_modules/@nestjs/core/injector/injector.js:84:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:80:13 at async Promise.all (index 2) at TestingInstanceLoader.createInstancesOfInjectables (../node_modules/@nestjs/core/injector/instance-loader.js:79:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:41:13 at async Promise.all (index 1) at TestingInstanceLoader.createInstances (../node_modules/@nestjs/core/injector/instance-loader.js:39:9) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/core/injector/instance-loader.js:22:13) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-instance-loader.js:9:9) at TestingModuleBuilder.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-module.builder.js:97:9) at TestingModuleBuilder.compile (../node_modules/@nestjs/testing/testing-module.builder.js:63:9) at Object. (events/events.controller.spec.ts:28:35) ● EventsController β€Ί registerAttendeeWithEmail calls registerAttendance if user is found Nest can't resolve dependencies of the CacheInterceptor (?, Reflector). Please make sure that the argument CACHE_MANAGER at index [0] is available in the RootTestModule context. Potential solutions: - Is RootTestModule a valid NestJS module? - If CACHE_MANAGER is a provider, is it part of the current RootTestModule? - If CACHE_MANAGER is exported from a separate @Module, is that module imported within RootTestModule? @Module({ imports: [ /* the Module containing CACHE_MANAGER */ ] }) 26 | 27 | beforeEach(async () => { > 28 | const module: TestingModule = await Test.createTestingModule({ | ^ 29 | imports: [ 30 | ConfigModule.forRoot(), 31 | JwtModule.register({ at TestingInjector.lookupComponentInParentModules (../node_modules/@nestjs/core/injector/injector.js:247:19) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/core/injector/injector.js:200:33) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/testing/testing-injector.js:19:45) at resolveParam (../node_modules/@nestjs/core/injector/injector.js:120:38) at async Promise.all (index 0) at TestingInjector.resolveConstructorParams (../node_modules/@nestjs/core/injector/injector.js:135:27) at TestingInjector.loadInstance (../node_modules/@nestjs/core/injector/injector.js:61:13) at TestingInjector.loadInjectable (../node_modules/@nestjs/core/injector/injector.js:84:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:80:13 at async Promise.all (index 2) at TestingInstanceLoader.createInstancesOfInjectables (../node_modules/@nestjs/core/injector/instance-loader.js:79:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:41:13 at async Promise.all (index 1) at TestingInstanceLoader.createInstances (../node_modules/@nestjs/core/injector/instance-loader.js:39:9) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/core/injector/instance-loader.js:22:13) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-instance-loader.js:9:9) at TestingModuleBuilder.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-module.builder.js:97:9) at TestingModuleBuilder.compile (../node_modules/@nestjs/testing/testing-module.builder.js:63:9) at Object. (events/events.controller.spec.ts:28:35) ● EventsController β€Ί registerAttendeeWithQR throws exception if jwt token cannot be verified Nest can't resolve dependencies of the CacheInterceptor (?, Reflector). Please make sure that the argument CACHE_MANAGER at index [0] is available in the RootTestModule context. Potential solutions: - Is RootTestModule a valid NestJS module? - If CACHE_MANAGER is a provider, is it part of the current RootTestModule? - If CACHE_MANAGER is exported from a separate @Module, is that module imported within RootTestModule? @Module({ imports: [ /* the Module containing CACHE_MANAGER */ ] }) 26 | 27 | beforeEach(async () => { > 28 | const module: TestingModule = await Test.createTestingModule({ | ^ 29 | imports: [ 30 | ConfigModule.forRoot(), 31 | JwtModule.register({ at TestingInjector.lookupComponentInParentModules (../node_modules/@nestjs/core/injector/injector.js:247:19) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/core/injector/injector.js:200:33) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/testing/testing-injector.js:19:45) at resolveParam (../node_modules/@nestjs/core/injector/injector.js:120:38) at async Promise.all (index 0) at TestingInjector.resolveConstructorParams (../node_modules/@nestjs/core/injector/injector.js:135:27) at TestingInjector.loadInstance (../node_modules/@nestjs/core/injector/injector.js:61:13) at TestingInjector.loadInjectable (../node_modules/@nestjs/core/injector/injector.js:84:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:80:13 at async Promise.all (index 2) at TestingInstanceLoader.createInstancesOfInjectables (../node_modules/@nestjs/core/injector/instance-loader.js:79:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:41:13 at async Promise.all (index 1) at TestingInstanceLoader.createInstances (../node_modules/@nestjs/core/injector/instance-loader.js:39:9) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/core/injector/instance-loader.js:22:13) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-instance-loader.js:9:9) at TestingModuleBuilder.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-module.builder.js:97:9) at TestingModuleBuilder.compile (../node_modules/@nestjs/testing/testing-module.builder.js:63:9) at Object. (events/events.controller.spec.ts:28:35) ● EventsController β€Ί registerAttendeeWithQR throws exception if user with email is not found Nest can't resolve dependencies of the CacheInterceptor (?, Reflector). Please make sure that the argument CACHE_MANAGER at index [0] is available in the RootTestModule context. Potential solutions: - Is RootTestModule a valid NestJS module? - If CACHE_MANAGER is a provider, is it part of the current RootTestModule? - If CACHE_MANAGER is exported from a separate @Module, is that module imported within RootTestModule? @Module({ imports: [ /* the Module containing CACHE_MANAGER */ ] }) 26 | 27 | beforeEach(async () => { > 28 | const module: TestingModule = await Test.createTestingModule({ | ^ 29 | imports: [ 30 | ConfigModule.forRoot(), 31 | JwtModule.register({ at TestingInjector.lookupComponentInParentModules (../node_modules/@nestjs/core/injector/injector.js:247:19) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/core/injector/injector.js:200:33) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/testing/testing-injector.js:19:45) at resolveParam (../node_modules/@nestjs/core/injector/injector.js:120:38) at async Promise.all (index 0) at TestingInjector.resolveConstructorParams (../node_modules/@nestjs/core/injector/injector.js:135:27) at TestingInjector.loadInstance (../node_modules/@nestjs/core/injector/injector.js:61:13) at TestingInjector.loadInjectable (../node_modules/@nestjs/core/injector/injector.js:84:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:80:13 at async Promise.all (index 2) at TestingInstanceLoader.createInstancesOfInjectables (../node_modules/@nestjs/core/injector/instance-loader.js:79:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:41:13 at async Promise.all (index 1) at TestingInstanceLoader.createInstances (../node_modules/@nestjs/core/injector/instance-loader.js:39:9) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/core/injector/instance-loader.js:22:13) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-instance-loader.js:9:9) at TestingModuleBuilder.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-module.builder.js:97:9) at TestingModuleBuilder.compile (../node_modules/@nestjs/testing/testing-module.builder.js:63:9) at Object. (events/events.controller.spec.ts:28:35) ● EventsController β€Ί registerAttendeeWithQR calls registerAttendance if user is found Nest can't resolve dependencies of the CacheInterceptor (?, Reflector). Please make sure that the argument CACHE_MANAGER at index [0] is available in the RootTestModule context. Potential solutions: - Is RootTestModule a valid NestJS module? - If CACHE_MANAGER is a provider, is it part of the current RootTestModule? - If CACHE_MANAGER is exported from a separate @Module, is that module imported within RootTestModule? @Module({ imports: [ /* the Module containing CACHE_MANAGER */ ] }) 26 | 27 | beforeEach(async () => { > 28 | const module: TestingModule = await Test.createTestingModule({ | ^ 29 | imports: [ 30 | ConfigModule.forRoot(), 31 | JwtModule.register({ at TestingInjector.lookupComponentInParentModules (../node_modules/@nestjs/core/injector/injector.js:247:19) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/core/injector/injector.js:200:33) at TestingInjector.resolveComponentInstance (../node_modules/@nestjs/testing/testing-injector.js:19:45) at resolveParam (../node_modules/@nestjs/core/injector/injector.js:120:38) at async Promise.all (index 0) at TestingInjector.resolveConstructorParams (../node_modules/@nestjs/core/injector/injector.js:135:27) at TestingInjector.loadInstance (../node_modules/@nestjs/core/injector/injector.js:61:13) at TestingInjector.loadInjectable (../node_modules/@nestjs/core/injector/injector.js:84:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:80:13 at async Promise.all (index 2) at TestingInstanceLoader.createInstancesOfInjectables (../node_modules/@nestjs/core/injector/instance-loader.js:79:9) at ../node_modules/@nestjs/core/injector/instance-loader.js:41:13 at async Promise.all (index 1) at TestingInstanceLoader.createInstances (../node_modules/@nestjs/core/injector/instance-loader.js:39:9) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/core/injector/instance-loader.js:22:13) at TestingInstanceLoader.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-instance-loader.js:9:9) at TestingModuleBuilder.createInstancesOfDependencies (../node_modules/@nestjs/testing/testing-module.builder.js:97:9) at TestingModuleBuilder.compile (../node_modules/@nestjs/testing/testing-module.builder.js:63:9) at Object. (events/events.controller.spec.ts:28:35) ```

Report generated by πŸ§ͺjest coverage report action from 73378e5b129cae773f33ce9ab0d2a92ef506f6cb