chore(deps): update vitest monorepo to v4 #146
Annotations
10 errors
|
test (ubuntu-latest, 22)
Process completed with exit code 1.
|
|
[server] test/unit/server/zip.test.ts > zip utils > extractZipFiles > should handle non-Error exceptions:
test/unit/server/zip.test.ts#L118
AssertionError: expected "vi.fn()" to be called with arguments: [ …(2) ]
Received:
1st vi.fn() call:
[
- "Failed to extract zip files: string error",
+ "Failed to extract zip files: () => ({
+ loadAsync: mockLoadAsync
+ }) is not a constructor",
{
- "cause": "string error",
+ "cause": TypeError {
+ "message": "() => ({
+ loadAsync: mockLoadAsync
+ }) is not a constructor",
+ },
},
]
Number of calls: 1
❯ test/unit/server/zip.test.ts:118:32
|
|
[server] test/unit/server/zip.test.ts > zip utils > extractZipFiles > should throw apiInternalError if extraction fails with Error:
test/unit/server/zip.test.ts#L99
AssertionError: expected "vi.fn()" to be called with arguments: [ …(2) ]
Received:
1st vi.fn() call:
[
- "Failed to extract zip files: Invalid zip format",
+ "Failed to extract zip files: () => ({
+ loadAsync: mockLoadAsync
+ }) is not a constructor",
{
- "cause": Error {
- "message": "Invalid zip format",
+ "cause": TypeError {
+ "message": "() => ({
+ loadAsync: mockLoadAsync
+ }) is not a constructor",
},
},
]
Number of calls: 1
❯ test/unit/server/zip.test.ts:99:32
|
|
[server] test/unit/server/zip.test.ts > zip utils > extractZipFiles > should load zip data using JSZip:
test/unit/server/zip.test.ts#L16
Error: Failed to extract zip files: () => ({
loadAsync: mockLoadAsync
}) is not a constructor
❯ test/unit/server/zip.test.ts:16:15
❯ Module.extractZipFiles server/utils/zip.ts:32:11
❯ test/unit/server/zip.test.ts:78:28
Caused by: Caused by: TypeError: () => ({
loadAsync: mockLoadAsync
}) is not a constructor
❯ Module.extractZipFiles server/utils/zip.ts:29:20
❯ test/unit/server/zip.test.ts:78:28
|
|
[server] test/unit/server/sqlite.test.ts > sqlite utils > queryDatabaseSingle > should throw if no results:
server/utils/sqlite.ts#L11
TypeError: () => ({
exec: mockExec
}) is not a constructor
❯ Module.loadDatabase server/utils/sqlite.ts:11:14
❯ test/unit/server/sqlite.test.ts:113:18
|
|
[server] test/unit/server/sqlite.test.ts > sqlite utils > queryDatabaseSingle > should return single result:
server/utils/sqlite.ts#L11
TypeError: () => ({
exec: mockExec
}) is not a constructor
❯ Module.loadDatabase server/utils/sqlite.ts:11:14
❯ test/unit/server/sqlite.test.ts:100:18
|
|
[server] test/unit/server/sqlite.test.ts > sqlite utils > queryDatabase > should handle non-error objects thrown:
server/utils/sqlite.ts#L11
TypeError: () => ({
exec: mockExec
}) is not a constructor
❯ Module.loadDatabase server/utils/sqlite.ts:11:14
❯ test/unit/server/sqlite.test.ts:86:18
|
|
[server] test/unit/server/sqlite.test.ts > sqlite utils > queryDatabase > should handle errors:
server/utils/sqlite.ts#L11
TypeError: () => ({
exec: mockExec
}) is not a constructor
❯ Module.loadDatabase server/utils/sqlite.ts:11:14
❯ test/unit/server/sqlite.test.ts:75:18
|
|
[server] test/unit/server/sqlite.test.ts > sqlite utils > queryDatabase > should execute query and map results:
server/utils/sqlite.ts#L11
TypeError: () => ({
exec: mockExec
}) is not a constructor
❯ Module.loadDatabase server/utils/sqlite.ts:11:14
❯ test/unit/server/sqlite.test.ts:54:18
|
|
[server] test/unit/server/sqlite.test.ts > sqlite utils > loadDatabase > should initialize SQL.js and load database:
server/utils/sqlite.ts#L11
TypeError: () => ({
exec: mockExec
}) is not a constructor
❯ Module.loadDatabase server/utils/sqlite.ts:11:14
❯ test/unit/server/sqlite.test.ts:45:18
|