add vitest #139
Draft
add vitest #139
Annotations
10 errors
test:
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:32: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:32:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
|
test:
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:32: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:32:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
|
test:
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:32: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:32:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
|
test:
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:32: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:32:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
|
test:
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:32: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:32:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
|
test:
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:32: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:32:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
|
test:
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:32: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:32:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
|
test:
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:32: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:32:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
|
test:
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:32: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:32:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
|
test:
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:32: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:32:5)', message: 'Cannot read properties of undefined (reading \'getRepository\')', constructor: 'Function<TypeError>', name: 'TypeError', toString: 'Function<toString>' } }
|
Loading