refactor: overhaul presets structure (#2446) #5543
Annotations
5 errors
test/presets/netlify.test.ts > nitro:preset:netlify > Database > works:
test/tests.ts#L696
AssertionError: expected { url: '/api/db', …(3) } to match object { rows: [ { id: '1001', …(3) } ] }
(4 matching properties omitted from actual)
- Expected
+ Received
Object {
- "rows": Array [
- Object {
- "email": "",
- "firstName": "John",
- "id": "1001",
- "lastName": "Doe",
- },
- ],
+ "message": "no such table: users",
+ "statusCode": 500,
+ "statusMessage": "",
+ "url": "/api/db",
}
❯ test/tests.ts:696:20
|
test/presets/vercel.test.ts > nitro:preset:vercel > Database > works:
test/tests.ts#L696
AssertionError: expected { url: '/api/db', …(3) } to match object { rows: [ { id: '1001', …(3) } ] }
(4 matching properties omitted from actual)
- Expected
+ Received
Object {
- "rows": Array [
- Object {
- "email": "",
- "firstName": "John",
- "id": "1001",
- "lastName": "Doe",
- },
- ],
+ "message": "disk I/O error",
+ "statusCode": 500,
+ "statusMessage": "",
+ "url": "/api/db",
}
❯ test/tests.ts:696:20
|
ci (ubuntu-latest)
Process completed with exit code 1.
|
ci (windows-latest)
The job was canceled because "ubuntu-latest" failed.
|
ci (windows-latest)
The operation was canceled.
|