From 4fbf2f200180b9aa5c248975f4cf3817de7ecd7c Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 11 Oct 2025 15:24:14 +0200 Subject: [PATCH] chore: Moved generated pacts into a GIT-submodule --- .gitmodules | 4 ++++ jest.config.ts | 2 +- pacts | 1 + src/app/chatroom/chatroom.service.pact.spec.ts | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 pacts diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..51c25926 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "pacts"] + path = pacts + url = ./ + branch = pacts diff --git a/jest.config.ts b/jest.config.ts index 227f916f..b0f6ca5f 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -17,7 +17,7 @@ export default { }, setupFilesAfterEnv: ['/setup-jest.ts'], watchPathIgnorePatterns: [ - '/dist/', + '/pacts/', ], transform: { '^.+\\.(ts|js|html|svg)$': [ diff --git a/pacts b/pacts new file mode 160000 index 00000000..e06ac38a --- /dev/null +++ b/pacts @@ -0,0 +1 @@ +Subproject commit e06ac38a3d3d7b78667a424ff03bfa810e6021f1 diff --git a/src/app/chatroom/chatroom.service.pact.spec.ts b/src/app/chatroom/chatroom.service.pact.spec.ts index 44a59481..d1080ece 100644 --- a/src/app/chatroom/chatroom.service.pact.spec.ts +++ b/src/app/chatroom/chatroom.service.pact.spec.ts @@ -13,7 +13,7 @@ describe('Pact between the ChatroomService and the backend', () => { consumer: 'frontend.ChatroomService', provider: 'backend', spec: SpecificationVersion.SPECIFICATION_VERSION_V4, - dir: 'dist/pacts', + dir: 'pacts', logLevel: 'debug', }); -- 2.39.5