Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/contract-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ 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
run: npm ci
- 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 \
Expand Down
1 change: 1 addition & 0 deletions __tests__/contract/serverest-provider.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down