Skip to content

Commit

Permalink
chore: improve typescript test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Dec 7, 2023
1 parent eb3110c commit e832a3f
Show file tree
Hide file tree
Showing 5 changed files with 3,244 additions and 188 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
# - name: example_jest
# run: cd examples/jest && npm install --ignore-scripts && npm test


# passing
- name: example_e2e
run: cd examples/e2e && npm install --ignore-scripts && npm test
Expand All @@ -67,7 +66,7 @@ jobs:
- name: example_v3_typescript
run: cd examples/v3/typescript && npm install --ignore-scripts && npm test
- name: example_v4_plugins
run: cd examples/v4/plugins && npm install --ignore-scripts && npm test
run: cd examples/v4/plugins && npm install --ignore-scripts && npm test
# - name: Upload dist folder
# if: runner.os == 'Linux'
# uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -118,7 +117,7 @@ jobs:
# if: matrix.example == 'v4/plugins'
# - name: run example ${{ matrix.example }}
# run: |
# npm install --ignore-scripts
# npm test
# npm install --ignore-scripts
# npm test
# shell: bash
# working-directory: examples/${{ matrix.example }}
# working-directory: examples/${{ matrix.example }}
4 changes: 2 additions & 2 deletions docs/matching.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ these can be used to match a hypermedia format like Siren, see [Example Pact + S

```js
{
"actions": arrayContaining(
"actions": arrayContaining([
{
"name": "update",
"method": "PUT",
Expand All @@ -259,7 +259,7 @@ these can be used to match a hypermedia format like Siren, see [Example Pact + S
"method": "DELETE",
"href": url("http://localhost:9000", ["orders", regex("\\d+", "1234")])
}
)
])
}
```

Expand Down
Loading

0 comments on commit e832a3f

Please sign in to comment.