Skip to content

Commit ef558e2

Browse files
committed
chore: Update superagent imports post esModuleInterop: true
1 parent 8da6073 commit ef558e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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 }) => {

0 commit comments

Comments
 (0)