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 39
39
"devDependencies" : {
40
40
"@commitlint/cli" : " ^10.0.0" ,
41
41
"@commitlint/config-conventional" : " ^10.0.0" ,
42
- "@pact-foundation/pact" : " ^10 .0.2" ,
42
+ "@pact-foundation/pact" : " ^11 .0.2" ,
43
43
"@pact-foundation/pact-js-prettier-config" : " ^1.0.0" ,
44
44
"@types/jest" : " ^29.2.3" ,
45
45
"@types/supertest" : " 2.0.8" ,
60
60
"typescript" : " 4.6.4"
61
61
},
62
62
"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 " ,
64
64
"jest" : " ^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0 || ^28.0.0 || ^29.0.0"
65
65
},
66
66
"lint-staged" : {
Original file line number Diff line number Diff line change 1
1
import { InteractionObject , Pact } from '@pact-foundation/pact' ;
2
- import * as supertest from 'supertest' ;
2
+ import { agent } from 'supertest' ;
3
3
import { getProviderBaseUrl , pactWith } from '../index' ;
4
4
5
5
export const getClient = ( provider : Pact ) =>
6
- supertest ( provider . mockService . baseUrl ) ;
6
+ agent ( provider . mockService . baseUrl ) ;
7
7
const pactPort : number = 5001 ;
8
8
9
9
export const postValidRequest : InteractionObject = {
Original file line number Diff line number Diff line change 1
1
import { V3MockServer } from '@pact-foundation/pact' ;
2
- import * as supertest from 'supertest' ;
2
+ import { agent } from 'supertest' ;
3
3
import { pactWith } from './index' ;
4
4
5
- const getClient = ( mock : V3MockServer ) => supertest ( mock . url ) ;
5
+ const getClient = ( mock : V3MockServer ) => agent ( mock . url ) ;
6
6
7
7
pactWith ( { consumer : 'MyConsumer' , provider : 'pactWith v3' } , ( interaction ) => {
8
8
interaction ( 'pact integration' , ( { provider, execute } ) => {
Original file line number Diff line number Diff line change 8
8
"rootDir" : " ./src" ,
9
9
"moduleResolution" : " node" ,
10
10
"noImplicitAny" : true ,
11
- "noUnusedLocals" : true
11
+ "noUnusedLocals" : true ,
12
+ "esModuleInterop" : true
12
13
},
13
14
"exclude" : [" ./node_modules/*" ],
14
15
"include" : [" ./src/**/*.ts" ]
You can’t perform that action at this time.
0 commit comments