diff --git a/.mocharc.json b/.mocharc.json index 36467d45d..2f7ff48fb 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -2,7 +2,6 @@ "bail": true, "require": [ "ts-node/register", - "./test/helper.ts", "source-map-support/register" ], "fullTrace": true, diff --git a/examples/e2e/package.json b/examples/e2e/package.json index 1c7d955e4..ac4f258ba 100644 --- a/examples/e2e/package.json +++ b/examples/e2e/package.json @@ -19,6 +19,7 @@ "devDependencies": { "absolute-version": "1.0.1", "@pact-foundation/pact": "file:../../dist", + "@pact-foundation/pact-cli": "^15.0.1", "body-parser": "^1.20.0", "chai": "^4.3.6", "chai-as-promised": "^7.1.1", diff --git a/examples/graphql/package.json b/examples/graphql/package.json index b768d77a2..41e551a7b 100644 --- a/examples/graphql/package.json +++ b/examples/graphql/package.json @@ -20,6 +20,7 @@ "license": "MIT", "devDependencies": { "@pact-foundation/pact": "file:../../dist", + "@pact-foundation/pact-cli": "^15.0.1", "@types/chai": "^4.3.8", "@types/chai-as-promised": "7.1.6", "@types/mocha": "^10.0.2", diff --git a/examples/jest/package.json b/examples/jest/package.json index 650ea12e2..e42935bae 100644 --- a/examples/jest/package.json +++ b/examples/jest/package.json @@ -14,6 +14,7 @@ "devDependencies": { "absolute-version": "1.0.2", "@pact-foundation/pact": "file:../../dist", + "@pact-foundation/pact-cli": "^15.0.1", "axios": "^1.6.5", "jest": "^29.7.0", "jest-pact": "^0.11.0", diff --git a/examples/messages/package.json b/examples/messages/package.json index 3fe4e0cfd..8c7e7b035 100644 --- a/examples/messages/package.json +++ b/examples/messages/package.json @@ -16,6 +16,7 @@ "devDependencies": { "absolute-version": "1.0.1", "@pact-foundation/pact": "file:../../dist", + "@pact-foundation/pact-cli": "^15.0.1", "@types/mocha": "^9.1.1", "@types/node": "^18.7.11", "axios": "^1.6.5", diff --git a/examples/serverless/package.json b/examples/serverless/package.json index 908314266..be3626128 100644 --- a/examples/serverless/package.json +++ b/examples/serverless/package.json @@ -20,6 +20,7 @@ "devDependencies": { "absolute-version": "1.0.1", "@pact-foundation/pact": "file:../../dist", + "@pact-foundation/pact-cli": "^15.0.1", "aws-sdk": "^2.1354.0", "chai": "^4.3.6", "lodash": "^4.17.21", diff --git a/examples/typescript/test/helper.ts b/examples/typescript/test/helper.ts deleted file mode 100644 index 0c035c3df..000000000 --- a/examples/typescript/test/helper.ts +++ /dev/null @@ -1,6 +0,0 @@ -import wrapper from '@pact-foundation/pact-core'; - -// used to kill any left over mock server instances -process.on('SIGINT', () => { - wrapper.removeAllServers(); -}); diff --git a/examples/typescript/test/mocha.opts b/examples/typescript/test/mocha.opts index c4051a34b..719df4abb 100644 --- a/examples/typescript/test/mocha.opts +++ b/examples/typescript/test/mocha.opts @@ -1,6 +1,5 @@ --bail --require ts-node/register ---require ./test/helper.ts --require source-map-support/register --full-trace --reporter spec diff --git a/examples/v3/e2e/package.json b/examples/v3/e2e/package.json index 6646b3ebc..82fec50c5 100644 --- a/examples/v3/e2e/package.json +++ b/examples/v3/e2e/package.json @@ -19,6 +19,7 @@ "devDependencies": { "absolute-version": "1.0.1", "@pact-foundation/pact": "file:../../../dist", + "@pact-foundation/pact-cli": "^15.0.1", "body-parser": "^1.20.0", "chai": "^3.5.0", "chai-as-promised": "^7.1.1", diff --git a/examples/v3/run-specific-verifications/test/helper.ts b/examples/v3/run-specific-verifications/test/helper.ts deleted file mode 100644 index 0c035c3df..000000000 --- a/examples/v3/run-specific-verifications/test/helper.ts +++ /dev/null @@ -1,6 +0,0 @@ -import wrapper from '@pact-foundation/pact-core'; - -// used to kill any left over mock server instances -process.on('SIGINT', () => { - wrapper.removeAllServers(); -}); diff --git a/examples/v3/run-specific-verifications/test/mocha.opts b/examples/v3/run-specific-verifications/test/mocha.opts index f08058252..320decc0a 100644 --- a/examples/v3/run-specific-verifications/test/mocha.opts +++ b/examples/v3/run-specific-verifications/test/mocha.opts @@ -1,6 +1,5 @@ --bail --require ts-node/register ---require ./test/helper.ts --require source-map-support/register --full-trace --reporter spec diff --git a/test/helper.ts b/test/helper.ts deleted file mode 100644 index c5e538a79..000000000 --- a/test/helper.ts +++ /dev/null @@ -1,6 +0,0 @@ -import pact from '@pact-foundation/pact-core'; - -// used to kill any left over mock server instances -process.on('SIGINT', () => { - pact.removeAllServers(); -});