fix(web): verify composer attachment persistence after flush #2987
ci.yml
on: pull_request
Format, Lint, Typecheck, Test, Browser Test, Build
1m 26s
Release Smoke
7s
Annotations
4 errors
|
Format, Lint, Typecheck, Test, Browser Test, Build
Process completed with exit code 1.
|
|
Format, Lint, Typecheck, Test, Browser Test, Build
@t3tools/web#test: command (/home/runner/_work/t3code/t3code/apps/web) /home/runner/.bun/bin/bun run test exited (1)
|
|
src/composerDraftStore.test.ts > composerDraftStore syncPersistedAttachments > marks attachments non-persisted when flushing draft storage fails:
apps/web/src/composerDraftStore.test.ts#L246
ReferenceError: Storage is not defined
❯ src/composerDraftStore.test.ts:246:33
|
|
src/composerDraftStore.test.ts > composerDraftStore syncPersistedAttachments > keeps attachments persisted after flushing the pending draft write:
apps/web/src/composerDraftStore.test.ts#L226
AssertionError: expected [] to deeply equal [ { id: 'img-persisted', …(4) } ]
- Expected
+ Received
- [
- {
- "dataUrl": "blob:persisted",
- "id": "img-persisted",
- "mimeType": "image/png",
- "name": "image.png",
- "sizeBytes": 4,
- },
- ]
+ []
❯ src/composerDraftStore.test.ts:226:7
|