feat(uploads): Create uploads package with prisma extension and upload processors #33016
Annotations
10 errors
🧪 Test:
packages/uploads/src/__tests__/createProcessors.test.ts#L46
AssertionError: expected '\memory_store_basedir\dumbo-firstUplo…' to match /\/memory_store_b…/memory_store_basedir\
- Expected:
/\/memory_store_basedir\/dumbo-*.*\.txt/
+ Received:
"\\memory_store_basedir\\dumbo-firstUpload-01J5Z71K4C6HP2HDY81DPG82WX.txt"
❯ src/__tests__/createProcessors.test.ts:46:32
|
🧪 Test:
packages/uploads/src/__tests__/createProcessors.test.ts#L80
AssertionError: expected '\memory_store_basedir\overridden.png' to be '/memory_store_basedir/overridden.png' // Object.is equality
Expected: "/memory_store_basedir/overridden.png"
Received: "\memory_store_basedir\overridden.png"
❯ src/__tests__/createProcessors.test.ts:80:46
|
🧪 Test:
packages/uploads/src/__tests__/createProcessors.test.ts#L101
AssertionError: expected '\memory_store_basedir\dummy-uploadFie…' to match /\/memory_store_b…/memory_store_basedir\
- Expected:
/\/memory_store_basedir\/.*[^.]+$/
+ Received:
"\\memory_store_basedir\\dummy-uploadField-01J5Z71K4X6Y2W9RBRB807F974"
❯ src/__tests__/createProcessors.test.ts:101:36
|
🧪 Test:
packages/uploads/src/__tests__/createProcessors.test.ts#L129
AssertionError: expected '\memory_store_basedir\01J5Z71K4Z8FG5P…' to match /\/memory_store_b…/memory_store_basedir\
- Expected:
/\/memory_store_basedir\/.*\.png/
+ Received:
"\\memory_store_basedir\\01J5Z71K4Z8FG5P33CTS74423T.png"
❯ src/__tests__/createProcessors.test.ts:129:23
|
🧪 Test:
packages/uploads/src/__tests__/createProcessors.test.ts#L139
AssertionError: expected '\bazinga_not_mem_store\01J5Z71K52ZW8H…' to match /\/bazinga_not_m…/bazinga_not_mem_store\
- Expected:
/\/bazinga_not_mem_store\/.*\.png/
+ Received:
"\\bazinga_not_mem_store\\01J5Z71K52ZW8H6ZBRQHGBYF5X.png"
❯ src/__tests__/createProcessors.test.ts:139:23
|
🧪 Test:
packages/uploads/src/__tests__/FileSystemsStorage.test.ts#L41
AssertionError: expected '\tmp\test_uploads\01J5Z71K281QHZNCGXH…' to match /\/tmp\/test_uploads\/.*\.txt$/tmp\
- Expected:
/\/tmp\/test_uploads\/.*\.txt$/
+ Received:
"\\tmp\\test_uploads\\01J5Z71K281QHZNCGXHNTB5X18.txt"
❯ src/__tests__/FileSystemsStorage.test.ts:41:29
|
🧪 Test:
packages/uploads/src/__tests__/FileSystemsStorage.test.ts#L79
AssertionError: expected '\my_custom\path\bazinga.txt' to deeply equal '/my_custom/path/bazinga.txt'
Expected: "/my_custom/path/bazinga.txt"
Received: "\my_custom\path\bazinga.txt"
❯ src/__tests__/FileSystemsStorage.test.ts:79:29
|
🧪 Test:
packages/uploads/src/__tests__/MemoryStorage.test.ts#L13
AssertionError: expected 'uploads\01J5Z71MDY53JKY0BX12W7CKX8.txt' to match /uploads\/.*\.txt$/.*\.txt$
- Expected:
/uploads\/.*\.txt$/
+ Received:
"uploads\\01J5Z71MDY53JKY0BX12W7CKX8.txt"
❯ src/__tests__/MemoryStorage.test.ts:13:29
|
🧪 Test:
packages/uploads/src/__tests__/MemoryStorage.test.ts#L50
AssertionError: expected 'custom\path\01J5Z71MEFXSGWWN12JZKTSG5…' to contain 'custom/path'
Expected: "custom/path"
Received: "custom\path\01J5Z71MEFXSGWWN12JZKTSG57.txt"
❯ src/__tests__/MemoryStorage.test.ts:50:29
|
🧪 Test:
packages/uploads/src/__tests__/queryExtensions.test.ts#L69
AssertionError: expected { id: 1, …(3), …(1) } to match object { uploadField: StringMatching{…} }
(4 matching properties omitted from actual)
- Expected
+ Received
Object {
- "uploadField": StringMatching /\/tmp\/.*\.txt$/,
+ "uploadField": "\\tmp\\dummy-uploadField-01J5Z71KHP4REJGJRAS40Y0ZCY.txt",
}
❯ src/__tests__/queryExtensions.test.ts:69:21
|
Loading