Skip to content

add vitest

add vitest #214

Triggered via pull request April 4, 2024 23:10
@nakedmcsenakedmcse
synchronize #139
vitest
Status Failure
Total duration 37s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
src/services/__test__/unit/AdminService.spec.ts > unit tests > getStatsData > should call build stats: src/db/dao/AbstractDao.ts#L11
INJECTION_ERROR: Injection failed on FileDao Origin: Cannot read properties of undefined (reading 'getRepository') ❯ new AbstractDao src/db/dao/AbstractDao.ts:11:23 ❯ new FileDao src/db/dao/FileDao.ts:11:9 ❯ construct node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27 ❯ InjectorService.resolve node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24 ❯ InjectorService.invoke node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12 ❯ InjectorService.loadSync node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13 ❯ InjectorService.load node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14 ❯ Function.createContainer node_modules/@tsed/di/src/node/services/DITest.ts:60:3 ❯ Function.create node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9 ❯ Module.platformCreate src/__test__/testUtils.spec.ts:51:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { tokens: [ 'Function<FileDao>' ], origin: { stack: 'TypeError: Cannot read properties of undefined (reading \'getRepository\')\n at new AbstractDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/AbstractDao.ts:11:23)\n at new FileDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/FileDao.ts:11:9)\n at construct (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27)\n at InjectorService.resolve (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24)\n at InjectorService.invoke (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12)\n at InjectorService.loadSync (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13)\n at InjectorService.load (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14)\n at Function.createContainer (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/node/services/DITest.ts:60:3)\n at Function.create (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9)\n at Module.platformCreate (/home/runner/work/WaifuVault/WaifuVault/src/__test__/testUtils.spec.ts:51:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
src/services/__test__/unit/AdminService.spec.ts > unit tests > getAllEntries > should call get all entries and build dto: src/db/dao/AbstractDao.ts#L11
INJECTION_ERROR: Injection failed on FileDao Origin: Cannot read properties of undefined (reading 'getRepository') ❯ new AbstractDao src/db/dao/AbstractDao.ts:11:23 ❯ new FileDao src/db/dao/FileDao.ts:11:9 ❯ construct node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27 ❯ InjectorService.resolve node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24 ❯ InjectorService.invoke node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12 ❯ InjectorService.loadSync node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13 ❯ InjectorService.load node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14 ❯ Function.createContainer node_modules/@tsed/di/src/node/services/DITest.ts:60:3 ❯ Function.create node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9 ❯ Module.platformCreate src/__test__/testUtils.spec.ts:51:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { tokens: [ 'Function<FileDao>' ], origin: { stack: 'TypeError: Cannot read properties of undefined (reading \'getRepository\')\n at new AbstractDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/AbstractDao.ts:11:23)\n at new FileDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/FileDao.ts:11:9)\n at construct (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27)\n at InjectorService.resolve (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24)\n at InjectorService.invoke (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12)\n at InjectorService.loadSync (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13)\n at InjectorService.load (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14)\n at Function.createContainer (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/node/services/DITest.ts:60:3)\n at Function.create (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9)\n at Module.platformCreate (/home/runner/work/WaifuVault/WaifuVault/src/__test__/testUtils.spec.ts:51:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
src/services/__test__/unit/AdminService.spec.ts > unit tests > getPagedEntries > should call get all entries ordered and build dto: src/db/dao/AbstractDao.ts#L11
INJECTION_ERROR: Injection failed on FileDao Origin: Cannot read properties of undefined (reading 'getRepository') ❯ new AbstractDao src/db/dao/AbstractDao.ts:11:23 ❯ new FileDao src/db/dao/FileDao.ts:11:9 ❯ construct node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27 ❯ InjectorService.resolve node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24 ❯ InjectorService.invoke node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12 ❯ InjectorService.loadSync node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13 ❯ InjectorService.load node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14 ❯ Function.createContainer node_modules/@tsed/di/src/node/services/DITest.ts:60:3 ❯ Function.create node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9 ❯ Module.platformCreate src/__test__/testUtils.spec.ts:51:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { tokens: [ 'Function<FileDao>' ], origin: { stack: 'TypeError: Cannot read properties of undefined (reading \'getRepository\')\n at new AbstractDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/AbstractDao.ts:11:23)\n at new FileDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/FileDao.ts:11:9)\n at construct (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27)\n at InjectorService.resolve (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24)\n at InjectorService.invoke (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12)\n at InjectorService.loadSync (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13)\n at InjectorService.load (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14)\n at Function.createContainer (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/node/services/DITest.ts:60:3)\n at Function.create (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9)\n at Module.platformCreate (/home/runner/work/WaifuVault/WaifuVault/src/__test__/testUtils.spec.ts:51:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
src/services/__test__/unit/AdminService.spec.ts > unit tests > getFileRecordCount > should return 100: src/db/dao/AbstractDao.ts#L11
INJECTION_ERROR: Injection failed on FileDao Origin: Cannot read properties of undefined (reading 'getRepository') ❯ new AbstractDao src/db/dao/AbstractDao.ts:11:23 ❯ new FileDao src/db/dao/FileDao.ts:11:9 ❯ construct node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27 ❯ InjectorService.resolve node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24 ❯ InjectorService.invoke node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12 ❯ InjectorService.loadSync node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13 ❯ InjectorService.load node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14 ❯ Function.createContainer node_modules/@tsed/di/src/node/services/DITest.ts:60:3 ❯ Function.create node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9 ❯ Module.platformCreate src/__test__/testUtils.spec.ts:51:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { tokens: [ 'Function<FileDao>' ], origin: { stack: 'TypeError: Cannot read properties of undefined (reading \'getRepository\')\n at new AbstractDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/AbstractDao.ts:11:23)\n at new FileDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/FileDao.ts:11:9)\n at construct (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27)\n at InjectorService.resolve (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24)\n at InjectorService.invoke (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12)\n at InjectorService.loadSync (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13)\n at InjectorService.load (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14)\n at Function.createContainer (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/node/services/DITest.ts:60:3)\n at Function.create (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9)\n at Module.platformCreate (/home/runner/work/WaifuVault/WaifuVault/src/__test__/testUtils.spec.ts:51:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
src/services/__test__/unit/AdminService.spec.ts > unit tests > getFileSearchRecordCount > should return 100: src/db/dao/AbstractDao.ts#L11
INJECTION_ERROR: Injection failed on FileDao Origin: Cannot read properties of undefined (reading 'getRepository') ❯ new AbstractDao src/db/dao/AbstractDao.ts:11:23 ❯ new FileDao src/db/dao/FileDao.ts:11:9 ❯ construct node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27 ❯ InjectorService.resolve node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24 ❯ InjectorService.invoke node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12 ❯ InjectorService.loadSync node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13 ❯ InjectorService.load node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14 ❯ Function.createContainer node_modules/@tsed/di/src/node/services/DITest.ts:60:3 ❯ Function.create node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9 ❯ Module.platformCreate src/__test__/testUtils.spec.ts:51:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { tokens: [ 'Function<FileDao>' ], origin: { stack: 'TypeError: Cannot read properties of undefined (reading \'getRepository\')\n at new AbstractDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/AbstractDao.ts:11:23)\n at new FileDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/FileDao.ts:11:9)\n at construct (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27)\n at InjectorService.resolve (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24)\n at InjectorService.invoke (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12)\n at InjectorService.loadSync (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13)\n at InjectorService.load (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14)\n at Function.createContainer (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/node/services/DITest.ts:60:3)\n at Function.create (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9)\n at Module.platformCreate (/home/runner/work/WaifuVault/WaifuVault/src/__test__/testUtils.spec.ts:51:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
src/services/__test__/unit/AdminService.spec.ts > unit tests > getAllBlockedIps > should call get all blocked ips: src/db/dao/AbstractDao.ts#L11
INJECTION_ERROR: Injection failed on FileDao Origin: Cannot read properties of undefined (reading 'getRepository') ❯ new AbstractDao src/db/dao/AbstractDao.ts:11:23 ❯ new FileDao src/db/dao/FileDao.ts:11:9 ❯ construct node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27 ❯ InjectorService.resolve node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24 ❯ InjectorService.invoke node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12 ❯ InjectorService.loadSync node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13 ❯ InjectorService.load node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14 ❯ Function.createContainer node_modules/@tsed/di/src/node/services/DITest.ts:60:3 ❯ Function.create node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9 ❯ Module.platformCreate src/__test__/testUtils.spec.ts:51:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { tokens: [ 'Function<FileDao>' ], origin: { stack: 'TypeError: Cannot read properties of undefined (reading \'getRepository\')\n at new AbstractDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/AbstractDao.ts:11:23)\n at new FileDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/FileDao.ts:11:9)\n at construct (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27)\n at InjectorService.resolve (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24)\n at InjectorService.invoke (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12)\n at InjectorService.loadSync (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13)\n at InjectorService.load (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14)\n at Function.createContainer (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/node/services/DITest.ts:60:3)\n at Function.create (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9)\n at Module.platformCreate (/home/runner/work/WaifuVault/WaifuVault/src/__test__/testUtils.spec.ts:51:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
src/services/__test__/unit/AdminService.spec.ts > unit tests > blockIp > should call process ip and not call delete: src/db/dao/AbstractDao.ts#L11
INJECTION_ERROR: Injection failed on FileDao Origin: Cannot read properties of undefined (reading 'getRepository') ❯ new AbstractDao src/db/dao/AbstractDao.ts:11:23 ❯ new FileDao src/db/dao/FileDao.ts:11:9 ❯ construct node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27 ❯ InjectorService.resolve node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24 ❯ InjectorService.invoke node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12 ❯ InjectorService.loadSync node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13 ❯ InjectorService.load node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14 ❯ Function.createContainer node_modules/@tsed/di/src/node/services/DITest.ts:60:3 ❯ Function.create node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9 ❯ Module.platformCreate src/__test__/testUtils.spec.ts:51:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { tokens: [ 'Function<FileDao>' ], origin: { stack: 'TypeError: Cannot read properties of undefined (reading \'getRepository\')\n at new AbstractDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/AbstractDao.ts:11:23)\n at new FileDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/FileDao.ts:11:9)\n at construct (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27)\n at InjectorService.resolve (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24)\n at InjectorService.invoke (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12)\n at InjectorService.loadSync (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13)\n at InjectorService.load (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14)\n at Function.createContainer (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/node/services/DITest.ts:60:3)\n at Function.create (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9)\n at Module.platformCreate (/home/runner/work/WaifuVault/WaifuVault/src/__test__/testUtils.spec.ts:51:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
src/services/__test__/unit/AdminService.spec.ts > unit tests > blockIp > should call process ip and call delete: src/db/dao/AbstractDao.ts#L11
INJECTION_ERROR: Injection failed on FileDao Origin: Cannot read properties of undefined (reading 'getRepository') ❯ new AbstractDao src/db/dao/AbstractDao.ts:11:23 ❯ new FileDao src/db/dao/FileDao.ts:11:9 ❯ construct node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27 ❯ InjectorService.resolve node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24 ❯ InjectorService.invoke node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12 ❯ InjectorService.loadSync node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13 ❯ InjectorService.load node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14 ❯ Function.createContainer node_modules/@tsed/di/src/node/services/DITest.ts:60:3 ❯ Function.create node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9 ❯ Module.platformCreate src/__test__/testUtils.spec.ts:51:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { tokens: [ 'Function<FileDao>' ], origin: { stack: 'TypeError: Cannot read properties of undefined (reading \'getRepository\')\n at new AbstractDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/AbstractDao.ts:11:23)\n at new FileDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/FileDao.ts:11:9)\n at construct (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27)\n at InjectorService.resolve (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24)\n at InjectorService.invoke (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12)\n at InjectorService.loadSync (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13)\n at InjectorService.load (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14)\n at Function.createContainer (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/node/services/DITest.ts:60:3)\n at Function.create (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9)\n at Module.platformCreate (/home/runner/work/WaifuVault/WaifuVault/src/__test__/testUtils.spec.ts:51:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
src/services/__test__/unit/AdminService.spec.ts > unit tests > removeBlockedIps > should call remove blocked ips: src/db/dao/AbstractDao.ts#L11
INJECTION_ERROR: Injection failed on FileDao Origin: Cannot read properties of undefined (reading 'getRepository') ❯ new AbstractDao src/db/dao/AbstractDao.ts:11:23 ❯ new FileDao src/db/dao/FileDao.ts:11:9 ❯ construct node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27 ❯ InjectorService.resolve node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24 ❯ InjectorService.invoke node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12 ❯ InjectorService.loadSync node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13 ❯ InjectorService.load node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14 ❯ Function.createContainer node_modules/@tsed/di/src/node/services/DITest.ts:60:3 ❯ Function.create node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9 ❯ Module.platformCreate src/__test__/testUtils.spec.ts:51:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { tokens: [ 'Function<FileDao>' ], origin: { stack: 'TypeError: Cannot read properties of undefined (reading \'getRepository\')\n at new AbstractDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/AbstractDao.ts:11:23)\n at new FileDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/FileDao.ts:11:9)\n at construct (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27)\n at InjectorService.resolve (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24)\n at InjectorService.invoke (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12)\n at InjectorService.loadSync (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13)\n at InjectorService.load (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14)\n at Function.createContainer (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/node/services/DITest.ts:60:3)\n at Function.create (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9)\n at Module.platformCreate (/home/runner/work/WaifuVault/WaifuVault/src/__test__/testUtils.spec.ts:51:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
src/services/__test__/unit/AdminService.spec.ts > unit tests > deleteEntries > should call delete entries: src/db/dao/AbstractDao.ts#L11
INJECTION_ERROR: Injection failed on FileDao Origin: Cannot read properties of undefined (reading 'getRepository') ❯ new AbstractDao src/db/dao/AbstractDao.ts:11:23 ❯ new FileDao src/db/dao/FileDao.ts:11:9 ❯ construct node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27 ❯ InjectorService.resolve node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24 ❯ InjectorService.invoke node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12 ❯ InjectorService.loadSync node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13 ❯ InjectorService.load node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14 ❯ Function.createContainer node_modules/@tsed/di/src/node/services/DITest.ts:60:3 ❯ Function.create node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9 ❯ Module.platformCreate src/__test__/testUtils.spec.ts:51:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { tokens: [ 'Function<FileDao>' ], origin: { stack: 'TypeError: Cannot read properties of undefined (reading \'getRepository\')\n at new AbstractDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/AbstractDao.ts:11:23)\n at new FileDao (/home/runner/work/WaifuVault/WaifuVault/src/db/dao/FileDao.ts:11:9)\n at construct (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:745:27)\n at InjectorService.resolve (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:530:24)\n at InjectorService.invoke (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:248:12)\n at InjectorService.loadSync (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/common/services/InjectorService.ts:297:13)\n at InjectorService.load (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/lib/esm/common/services/InjectorService.js:290:14)\n at Function.createContainer (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/di/src/node/services/DITest.ts:60:3)\n at Function.create (/home/runner/work/WaifuVault/WaifuVault/node_modules/@tsed/common/lib/esm/services/PlatformTest.js:23:9)\n at Module.platformCreate (/home/runner/work/WaifuVault/WaifuVault/src/__test__/testUtils.spec.ts:51:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }