Skip to content

Commit

Permalink
wip: tidy up debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Apr 18, 2020
1 parent 6c869bd commit 0b01e58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
18 changes: 2 additions & 16 deletions examples/e2e/test/publish.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
console.log("Clearing existing require cache:")

for (let key in require.cache) {
delete require.cache[key]
}

console.log("require.main:")
console.log(require.main)
console.log("require.resolve:")
console.log(require.resolve("@pact-foundation/pact"))
const pact = require("@pact-foundation/pact")

console.log("pact: ", pact)
console.log("publisher:", pact.Publisher)

const { Publisher } = require("@pact-foundation/pact")
const path = require("path")
const opts = {
pactFilesOrDirs: [
Expand All @@ -32,7 +18,7 @@ const opts = {
: Math.floor(new Date() / 1000)),
}

new pact.Publisher(opts)
new Publisher(opts)
.publishPacts()
.then(() => {
console.log("Pact contract publishing complete!")
Expand Down
1 change: 0 additions & 1 deletion examples/messages/provider/message-provider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ describe("Message provider tests", () => {
return Promise.resolve(`state set to create a dog`)
},
},
log: path.resolve(process.cwd(), "logs"),
logLevel: "info",
provider: "MyJSMessageProvider",
providerVersion: "1.0.0",
Expand Down

0 comments on commit 0b01e58

Please sign in to comment.