2022-03-05 13:10:45 +00:00
|
|
|
# Snapshot report for `tests/migrations.test.ts`
|
|
|
|
|
|
|
|
The actual snapshot is saved in `migrations.test.ts.snap`.
|
|
|
|
|
|
|
|
Generated by [AVA](https://avajs.dev).
|
|
|
|
|
|
|
|
## dataMigrations happy path
|
|
|
|
|
|
|
|
> Migration 0.1.7
|
|
|
|
|
|
|
|
{
|
|
|
|
qi1: {
|
|
|
|
added: Date 2022-03-02 16:00:00 UTC {},
|
|
|
|
id: 1,
|
|
|
|
text: 'Sample',
|
|
|
|
url: 'https://example.org',
|
|
|
|
},
|
|
|
|
version: '0.1.7',
|
|
|
|
}
|
|
|
|
|
2022-10-25 10:04:11 +00:00
|
|
|
> Migration 0.3.0
|
|
|
|
|
|
|
|
{
|
|
|
|
qi1: {
|
|
|
|
added: Date 2022-03-02 16:00:00 UTC {},
|
|
|
|
id: 1,
|
|
|
|
sortIndex: 1,
|
|
|
|
text: 'Sample',
|
|
|
|
url: 'https://example.org',
|
|
|
|
},
|
|
|
|
version: '0.3.0',
|
|
|
|
}
|
|
|
|
|
2022-03-05 13:10:45 +00:00
|
|
|
## dataMigrations unhappy path
|
|
|
|
|
|
|
|
> Migration 0.1.7
|
|
|
|
|
|
|
|
{
|
|
|
|
version: '0.1.7',
|
|
|
|
}
|
|
|
|
|
2022-10-25 10:04:11 +00:00
|
|
|
> Migration 0.3.0
|
|
|
|
|
|
|
|
{
|
|
|
|
version: '0.3.0',
|
|
|
|
}
|
|
|
|
|
2022-03-05 13:10:45 +00:00
|
|
|
## Serializing & Deserializing Queue
|
|
|
|
|
|
|
|
> Serialized
|
|
|
|
|
|
|
|
{
|
|
|
|
qi1: {
|
2022-03-20 18:21:52 +00:00
|
|
|
added: '2022-03-02T16:00:00.000Z',
|
2022-03-05 13:10:45 +00:00
|
|
|
id: 1,
|
2022-10-25 10:25:41 +00:00
|
|
|
sortIndex: 1,
|
2022-03-05 13:10:45 +00:00
|
|
|
text: 'Sample',
|
|
|
|
url: 'https://example.org',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
> Deserialized
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
|
|
|
added: Date 2022-03-02 16:00:00 UTC {},
|
|
|
|
id: 1,
|
2022-10-25 10:25:41 +00:00
|
|
|
sortIndex: 1,
|
2022-03-05 13:10:45 +00:00
|
|
|
text: 'Sample',
|
|
|
|
url: 'https://example.org',
|
|
|
|
},
|
|
|
|
]
|