Skip to content

add vitest

add vitest #225

Triggered via pull request April 11, 2024 03:41
@nakedmcsenakedmcse
synchronize #139
vitest
Status Failure
Total duration 40s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 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:34: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:206:35 ❯ node_modules/@tsed/common/lib/esm/services/PlatformTest.js:85:20
build
Process completed with exit code 1.