File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 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" ,
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" : {
Original file line number Diff line number Diff line change 11import { InteractionObject , Pact } from '@pact-foundation/pact' ;
2- import * as supertest from 'supertest' ;
2+ import { agent } from 'supertest' ;
33import { getProviderBaseUrl , pactWith } from '../index' ;
44
55export const getClient = ( provider : Pact ) =>
6- supertest ( provider . mockService . baseUrl ) ;
6+ agent ( provider . mockService . baseUrl ) ;
77const pactPort : number = 5001 ;
88
99export const postValidRequest : InteractionObject = {
Original file line number Diff line number Diff line change 11import { V3MockServer } from '@pact-foundation/pact' ;
2- import * as supertest from 'supertest' ;
2+ import { agent } from 'supertest' ;
33import { pactWith } from './index' ;
44
5- const getClient = ( mock : V3MockServer ) => supertest ( mock . url ) ;
5+ const getClient = ( mock : V3MockServer ) => agent ( mock . url ) ;
66
77pactWith ( { consumer : 'MyConsumer' , provider : 'pactWith v3' } , ( interaction ) => {
88 interaction ( 'pact integration' , ( { provider, execute } ) => {
Original file line number Diff line number Diff line change 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" ]
You can’t perform that action at this time.
0 commit comments