Add oxlint and oxfmt configs, add format check to CI #1
Annotations
5 errors
|
test
Process completed with exit code 1.
|
|
src/__tests__/client.test.ts > flush > skips flush when buffer is empty:
src/__tests__/client.test.ts#L342
AssertionError: expected "request" to not be called at all, but actually been called 1 times
Received:
1st request call:
Array [
Object {
"agent": Agent {
"_events": Object {
"free": [Function anonymous],
"newListener": [Function maybeEnableKeylog],
},
"_eventsCount": 2,
"_maxListeners": undefined,
"_sessionCache": Object {
"list": Array [],
"map": Object {},
},
"agentKeepAliveTimeoutBuffer": 1000,
"defaultPort": 443,
"freeSockets": Object {},
"keepAlive": true,
"keepAliveMsecs": 1000,
"maxCachedSessions": 100,
"maxFreeSockets": 256,
"maxSockets": 2,
"maxTotalSockets": Infinity,
"options": Object {
"defaultPort": 443,
"keepAlive": true,
"lookup": [Function ssrfSafeLookup],
"maxSockets": 2,
"noDelay": true,
"path": null,
"protocol": "https:",
},
"protocol": "https:",
"requests": Object {},
"scheduling": "lifo",
"sockets": Object {},
"totalSocketCount": 0,
Symbol(shapeMode): false,
Symbol(kCapture): false,
},
"headers": Object {
"Content-Length": 1081,
"Content-Type": "application/json",
"x-api-key": "ak_test_key_123",
"x-peekapi-sdk": "node/0.1.0",
},
"hostname": "example.supabase.co",
"method": "POST",
"path": "/functions/v1/ingest",
"port": 443,
"signal": AbortSignal {
Symbol(kEvents): Map {},
Symbol(events.maxEventTargetListeners): 0,
Symbol(events.maxEventTargetListenersWarned): false,
Symbol(kHandlers): Map {},
Symbol(kAborted): false,
Symbol(kReason): undefined,
Symbol(kComposite): false,
},
},
[Function anonymous],
]
Number of calls: 1
❯ src/__tests__/client.test.ts:342:29
|
|
src/__tests__/client.test.ts > flush > auto-flushes when buffer reaches batchSize:
src/__tests__/client.test.ts#L316
AssertionError: expected [ { method: 'GET', …(7) }, …(8) ] to have a length of +0 but got 9
- Expected
+ Received
- 0
+ 9
❯ src/__tests__/client.test.ts:316:36
|
|
src/__tests__/client.test.ts > per-event size limit (maxEventBytes) > does not check size when metadata is absent:
src/__tests__/client.test.ts#L297
AssertionError: expected [ { method: 'POST', …(6) }, …(9) ] to have a length of 1 but got 10
- Expected
+ Received
- 1
+ 10
❯ src/__tests__/client.test.ts:297:20
|
|
src/__tests__/client.test.ts > per-event size limit (maxEventBytes) > drops event entirely if still too large after stripping metadata:
src/__tests__/client.test.ts#L287
AssertionError: expected [ { method: 'POST', …(6) }, …(6) ] to have a length of +0 but got 7
- Expected
+ Received
- 0
+ 7
❯ src/__tests__/client.test.ts:287:20
|