fix(ci): port integration suites off jest onto vitest APIs #210
ci.yml
on: push
Typecheck & build
46s
Integration tests
1m 7s
Annotations
3 errors and 2 warnings
|
Integration tests
Process completed with exit code 1.
|
|
tests/integration/migrations.test.ts > Migrations idempotency > apply -> reset -> apply yields stable migration checksums:
tests/integration/migrations.test.ts#L11
Error: Command failed: npx prisma migrate deploy
Error: P3005
The database schema is not empty. Read more about how to baseline an existing production database: https://pris.ly/d/migrate-baseline
❯ runPrisma tests/integration/migrations.test.ts:11:10
❯ tests/integration/migrations.test.ts:24:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, 'Prisma schema loaded from prisma/schema.prisma\nDatasource "db": PostgreSQL database "wraith_test", schemas "wraith" at "localhost:55432"\n\n3 migrations found in prisma/migrations\n\n', 'Error: P3005\n\nThe database schema is not empty. Read more about how to baseline an existing production database: https://pris.ly/d/migrate-baseline\n\n' ], pid: 3965, stdout: 'Prisma schema loaded from prisma/schema.prisma\nDatasource "db": PostgreSQL database "wraith_test", schemas "wraith" at "localhost:55432"\n\n3 migrations found in prisma/migrations\n\n', stderr: 'Error: P3005\n\nThe database schema is not empty. Read more about how to baseline an existing production database: https://pris.ly/d/migrate-baseline\n\n' }
|
|
tests/integration/api.test.ts > Wraith integration API > aggregates account summary across incoming and outgoing events:
tests/integration/api.test.ts#L56
AssertionError: expected undefined to deeply equal [ { …(8) }, { …(8) } ]
- Expected:
[
{
"contractId": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
"displayNetFlow": "3.0000000",
"displayTotalReceived": "3.5000000",
"displayTotalSent": "0.5000000",
"netFlow": "30000000",
"totalReceived": "35000000",
"totalSent": "5000000",
"txCount": 3,
},
{
"contractId": "CBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBD2KM",
"displayNetFlow": "2.5000000",
"displayTotalReceived": "4.0000000",
"displayTotalSent": "1.5000000",
"netFlow": "25000000",
"totalReceived": "40000000",
"totalSent": "15000000",
"txCount": 2,
},
]
+ Received:
undefined
❯ tests/integration/api.test.ts:56:25
|
|
Typecheck & build
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Integration tests
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|