refactor: fixes all eslint issues #129
Annotations
4 errors and 1 warning
docs
Process completed with exit code 1.
|
test/formatters/json/log.terminators.browser.test.ts > terminators with json format in browser > prints an alert json log with all of the optional fields:
test/formatters/json/log.terminators.ts#L463
AssertionError: expected { v: 1, level: +0, …(14) } to deeply equal { v: 1, level: +0, …(14) }
- Expected
+ Received
Object {
"args": Array [],
"err": Object {
"message": "An error occurred.",
"name": "TestError",
"stack": "error stack",
},
"hostname": "localhost",
"latency": 100,
"level": 0,
"levelName": "alert",
"meta": Object {
+ "levelName": "alert",
"meta": Object {
"hello": "world",
},
},
"msg": "This is an alert log.",
"name": "test-app",
"pid": 1,
"req": Object {
- "body": Object {
- "foo": "bar",
- },
+ "body": "{\"foo\":\"bar\"}",
"headers": Object {
"connection": "close",
"content-type": "text/plain;charset=UTF-8",
"x-hi": "Mom",
},
"method": "POST",
"remoteAddress": "120.0.0.1",
"remotePort": 51244,
"url": "https://120.0.0.1:51244/path?q=1#anchor",
},
"req_id": "12345",
"res": Object {
"header": "HTTPS 200 OK
boop: 0
content-type: 1
",
"statusCode": 200,
},
"src": "test.ts",
"time": "2024-07-31T13:19:25-04:00",
"v": 1,
}
❯ printsOptionalFields test/formatters/json/log.terminators.ts:463:15
|
test/formatters/json/log.terminators.server.test.ts > terminators with json format in browser > prints an alert json log with all of the optional fields:
test/formatters/json/log.terminators.ts#L463
AssertionError: expected { v: 1, level: +0, …(14) } to deeply equal { v: 1, level: +0, …(14) }
- Expected
+ Received
Object {
"args": Array [],
"err": Object {
"message": "An error occurred.",
"name": "TestError",
"stack": "error stack",
},
"hostname": "localhost",
"latency": 100,
"level": 0,
"levelName": "alert",
"meta": Object {
+ "levelName": "alert",
"meta": Object {
"hello": "world",
},
},
"msg": "This is an alert log.",
"name": "test-app",
"pid": 1,
"req": Object {
- "body": Object {
- "foo": "bar",
- },
+ "body": "{\"foo\":\"bar\"}",
"headers": Object {
"connection": "close",
"content-type": "text/plain;charset=UTF-8",
"x-hi": "Mom",
},
"method": "POST",
"remoteAddress": "120.0.0.1",
"remotePort": 51244,
"url": "https://120.0.0.1:51244/path?q=1#anchor",
},
"req_id": "12345",
"res": Object {
"header": "HTTPS 200 OK
boop: 0
content-type: 1
",
"statusCode": 200,
},
"src": "test.ts",
"time": "2024-07-31T13:19:25-04:00",
"v": 1,
}
❯ printsOptionalFields test/formatters/json/log.terminators.ts:463:15
|
Test
Process completed with exit code 1.
|
docs
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
dist
Expired
|
79.6 KB |
|