Skip to content

Commit d63b8c5

Browse files
authored
Merge pull request #227 from pact-foundation/pezholio-bump-pact-js-version
Pezholio bump pact js version
2 parents 924224f + ef558e2 commit d63b8c5

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"devDependencies": {
4040
"@commitlint/cli": "^10.0.0",
4141
"@commitlint/config-conventional": "^10.0.0",
42-
"@pact-foundation/pact": "^10.0.2",
42+
"@pact-foundation/pact": "^11.0.2",
4343
"@pact-foundation/pact-js-prettier-config": "^1.0.0",
4444
"@types/jest": "^29.2.3",
4545
"@types/supertest": "2.0.8",
@@ -60,7 +60,7 @@
6060
"typescript": "4.6.4"
6161
},
6262
"peerDependencies": {
63-
"@pact-foundation/pact": "^v10.0.0-beta.61 || ^10.0.2",
63+
"@pact-foundation/pact": "^v10.0.0-beta.61 || ^10.0.2 || ^11.0.2",
6464
"jest": "^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0 || ^29.0.0"
6565
},
6666
"lint-staged": {

src/test/pactwith.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { InteractionObject, Pact } from '@pact-foundation/pact';
2-
import * as supertest from 'supertest';
2+
import { agent } from 'supertest';
33
import { getProviderBaseUrl, pactWith } from '../index';
44

55
export const getClient = (provider: Pact) =>
6-
supertest(provider.mockService.baseUrl);
6+
agent(provider.mockService.baseUrl);
77
const pactPort: number = 5001;
88

99
export const postValidRequest: InteractionObject = {

src/v3/pactwith.v3.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { V3MockServer } from '@pact-foundation/pact';
2-
import * as supertest from 'supertest';
2+
import { agent } from 'supertest';
33
import { pactWith } from './index';
44

5-
const getClient = (mock: V3MockServer) => supertest(mock.url);
5+
const getClient = (mock: V3MockServer) => agent(mock.url);
66

77
pactWith({ consumer: 'MyConsumer', provider: 'pactWith v3' }, (interaction) => {
88
interaction('pact integration', ({ provider, execute }) => {

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"rootDir": "./src",
99
"moduleResolution": "node",
1010
"noImplicitAny": true,
11-
"noUnusedLocals": true
11+
"noUnusedLocals": true,
12+
"esModuleInterop": true
1213
},
1314
"exclude": ["./node_modules/*"],
1415
"include": ["./src/**/*.ts"]

0 commit comments

Comments
 (0)