diff --git a/.github/workflows/contract-testing.yml b/.github/workflows/contract-testing.yml index 380f08d..f15791f 100644 --- a/.github/workflows/contract-testing.yml +++ b/.github/workflows/contract-testing.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-18.04 steps: - name: Project checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Node.js Setup uses: actions/setup-node@v2 - name: Installation of Node.js dependencies @@ -21,6 +21,8 @@ jobs: - name: Run contract test run: npm run test:contract - run: docker pull pactfoundation/pact-cli:latest + - name: work around permission issue + run: git config --global --add safe.directory /home/runner/work/front/front - name: Publish contract test result run: | docker run --rm \ diff --git a/__tests__/contract/serverest-provider.test.js b/__tests__/contract/serverest-provider.test.js index 814504e..d782344 100644 --- a/__tests__/contract/serverest-provider.test.js +++ b/__tests__/contract/serverest-provider.test.js @@ -15,6 +15,7 @@ describe('API Pact test - Integration between \'Front\' and \'ServeRest - API Re afterEach(() => mockProvider.verify()); afterAll(() => mockProvider.finalize()); + describe('GET user by ID', () => { it('Should return with sucess search with existing user', async () => { const expectedUsuario = {