Skip to content

Commit 6bc8da1

Browse files
committed
chore: Use a generated filename for the broker contract
1 parent 60f4f5f commit 6bc8da1

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

packages/case-core/case-contracts/case-pact-broker.case.json renamed to packages/case-core/case-contracts/pact-broker/case-d1ebc272fb197635ddbf6c37f7cd7c14ef8ee06b84db89de4c0ef1964ec355c6.case.json

File renamed without changes.

packages/case-core/src/connectors/broker/broker.case.spec.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ const emptyContext: DataContext = {
6969
'_case:currentRun:context:autoVersionFrom': 'TAG',
7070
};
7171

72-
const contractFilename = 'case-contracts/case-pact-broker.case.json';
7372
const uploadingContract = makeContractStore(emptyContext).readContract(
7473
'case-contracts/contract-for-broker-upload-test.json',
7574
).contents;
@@ -85,9 +84,7 @@ const makeBrokerApiForTest = (
8584

8685
describe('broker client', () => {
8786
beforeAll(() => {
88-
// Delete the contract file first
8987
try {
90-
fs.rmSync(contractFilename);
9188
fs.mkdirSync('case-contracts');
9289
} catch (e) {
9390
// Ignore any errors deleting the file and making the directory
@@ -135,9 +132,7 @@ describe('broker client', () => {
135132
{
136133
consumerName: 'Case',
137134
providerName: 'Pact Broker',
138-
config: {
139-
contractFilename,
140-
},
135+
config: {},
141136
},
142137
(contract) => {
143138
const stateAuthTokenValid = inState('auth token is valid', {

0 commit comments

Comments
 (0)