Skip to content

Commit

Permalink
chore(examples): allow examples to run independently
Browse files Browse the repository at this point in the history
* All examples are now completely standalone
(hopefully this helps with people wanting to use them
without running/building pact js)
* Examples are `npm link`ed during build, to ensure they
are still testing the current build
* chore(lint): update lint package versions
* chore: improve bash script robustness
* chore(deps): update lock files for examples
  • Loading branch information
mefellows authored Jun 25, 2019
1 parent d10e4b1 commit 058ab6f
Show file tree
Hide file tree
Showing 58 changed files with 39,410 additions and 6,068 deletions.
5,075 changes: 4,856 additions & 219 deletions examples/ava/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/ava/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"license": "MIT",
"devDependencies": {
"@pact-foundation/pact": "^8.2.6",
"ava": "^0.21.0",
"axios": "^0.14.0",
"rimraf": "^2.6.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/ava/test/get-dog_1.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const path = require("path")
const test = require("ava")
const pact = require("../../../dist/pact")
const pact = require("@pact-foundation/pact")
const Pact = pact.Pact
const getMeDog = require("../index").getMeDog

Expand Down
2 changes: 1 addition & 1 deletion examples/ava/test/get-dogs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const path = require("path")
const test = require("ava")
const pact = require("../../../dist/pact")
const pact = require("@pact-foundation/pact")
const Pact = pact.Pact
const getMeDogs = require("../index").getMeDogs

Expand Down
Loading

0 comments on commit 058ab6f

Please sign in to comment.