Skip to content

add vitest

add vitest #223

Triggered via pull request April 9, 2024 13:57
@nakedmcsenakedmcse
synchronize #139
vitest
Status Failure
Total duration 38s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
src/services/__test__/unit/FileService.spec.ts > unit tests > processUpload > should process a given upload: src/db/dao/FileDao.ts#L19
TypeError: Cannot read properties of undefined (reading 'findBy') ❯ FileDao.getEntry src/db/dao/FileDao.ts:19:35 ❯ FileRepo.getEntry src/db/repo/FileRepo.ts:15:29 ❯ FileService.getFileInfo src/services/FileService.ts:257:46 ❯ src/services/__test__/unit/FileService.spec.ts:30:35 ❯ node_modules/@tsed/common/lib/esm/services/PlatformTest.js:85:20
src/services/__test__/unit/FileService.spec.ts > unit tests > getEntry > should return a decrypted buffer and fileupload model for a given filename: src/db/dao/FileDao.ts#L19
TypeError: Cannot read properties of undefined (reading 'findBy') ❯ FileDao.getEntry src/db/dao/FileDao.ts:19:35 ❯ FileRepo.getEntry src/db/repo/FileRepo.ts:15:29 ❯ FileService.getFileInfo src/services/FileService.ts:257:46 ❯ src/services/__test__/unit/FileService.spec.ts:142:35 ❯ node_modules/@tsed/common/lib/esm/services/PlatformTest.js:85:20
src/services/__test__/unit/FileService.spec.ts > unit tests > modifyEntry > should modify an entry based on a given modification dto and token: src/db/dao/FileDao.ts#L19
TypeError: Cannot read properties of undefined (reading 'findBy') ❯ FileDao.getEntry src/db/dao/FileDao.ts:19:35 ❯ FileRepo.getEntry src/db/repo/FileRepo.ts:15:29 ❯ FileService.getFileInfo src/services/FileService.ts:257:46 ❯ src/services/__test__/unit/FileService.spec.ts:156:35 ❯ node_modules/@tsed/common/lib/esm/services/PlatformTest.js:85:20
src/services/__test__/unit/FileService.spec.ts > unit tests > processDelete > should delete the files for a given list of tokens: src/db/dao/FileDao.ts#L19
TypeError: Cannot read properties of undefined (reading 'findBy') ❯ FileDao.getEntry src/db/dao/FileDao.ts:19:35 ❯ FileRepo.getEntry src/db/repo/FileRepo.ts:15:29 ❯ FileService.getFileInfo src/services/FileService.ts:257:46 ❯ src/services/__test__/unit/FileService.spec.ts:217:35 ❯ node_modules/@tsed/common/lib/esm/services/PlatformTest.js:85:20
build
Process completed with exit code 1.