Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions src/__tests__/fixtures/no-pacts-found/oas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,4 @@ info:
title: OAS
version: 1.0.0

paths:
/exists:
get:
responses:
"200":
description: description
content:
"application/json":
schema: {}
paths: {}
8 changes: 1 addition & 7 deletions src/__tests__/fixtures/no-pacts-found/opc-results.json
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
[
{
"code": "pact-broker.no-pacts-found",
"message": "No consumer pacts found in Pact Broker",
"type": "warning"
}
]
[]
8 changes: 0 additions & 8 deletions src/compare/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ export class Comparator {

const parsedPact = parsePact(pact);

if (parsedPact.interactions.length === 0) {
yield {
code: "pact-broker.no-pacts-found",
message: "No consumer pacts found in Pact Broker",
type: "warning",
};
}

for (const [index, interaction] of parsedPact.interactions.entries()) {
const { method, path, query } = interaction.request;
let pathWithLeadingSlash = path.startsWith("/") ? path : `/${path}`;
Expand Down