added formatting for the fail output #17
ci.yml
on: push
TypeScript Tests
10s
Check dist/
19s
GitHub Actions Test
5s
Annotations
2 errors
error: expect(received).toEqual(expected):
__tests__/utils.ts#L80
[
{
endpoint: {
+ line: 7,
method: "get",
+ originalPath: "/hello",
pathParts: [
{
type: "literal",
+ value: "hello",
- value: "user",
- },
- {
- type: "literal",
- value: "devices",
- },
- {
- name: "serial",
- type: "parameter",
- }
- ],
- queryParameters: [
- {
- name: "fields",
- required: false,
- }
- ],
- servers: [
- {
- basePath: [
- {
- type: "literal",
- value: "api",
- },
- {
- type: "literal",
- value: "v1",
- }
- ],
- }
- ],
- },
- type: "only-in-oas",
- },
- {
- endpoint: {
- method: "get",
- pathParts: [
- {
- type: "literal",
- value: "user",
- },
- {
- type: "literal",
- value: "accessTokens",
}
],
queryParameters: [],
- servers: [
- {
- basePath: [
- {
- type: "literal",
- value: "api",
- },
- {
- type: "literal",
- value: "v1",
- }
- ],
- }
- ],
},
+ type: "only-in-doc",
- type: "only-in-oas",
}
]
- Expected - 60
+ Received + 4
at toEqual (/home/runner/work/doc-check/doc-check/__tests__/utils.ts:80:5)
at /home/runner/work/doc-check/doc-check/__tests__/repos/openstf__stf.test.ts:28:5
|
TypeScript Tests
Process completed with exit code 1.
|