You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-92Lines changed: 5 additions & 92 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,9 +72,7 @@ Read [Getting started with Pact] for more information for beginners.
72
72
-[Examples](#examples)
73
73
-[HTTP APIs](#http-apis)
74
74
-[Asynchronous APIs](#asynchronous-apis)
75
-
-[Using Pact in non-Node environments](#using-pact-in-non-node-environments)
76
-
-[Using Pact with Karma](#using-pact-with-karma)
77
-
-[Using Pact with RequireJS](#using-pact-with-requirejs)
75
+
-[Using Pact in non-Node environments such as Karma](#using-pact-in-non-node-environments-such-as-karma)
78
76
-[Pact JS V3](#pact-js-v3)
79
77
-[Using the V3 matching rules](#using-the-v3-matching-rules)
80
78
-[Using Pact with XML](#using-pact-with-xml)
@@ -204,7 +202,7 @@ The first step is to create a test for your API Consumer. The example below uses
204
202
1. Validate the expected interactions were made between your consumer and the Mock Service
205
203
1. Generate the pact(s)
206
204
207
-
Check out the `examples` folder for examples with Karma Jasmine, Mocha and Jest. The example below is taken from the [integration spec](https://github.com/pact-foundation/pact-js/blob/master/src/pact.integration.spec.ts).
205
+
Check out the `examples` folder for examples with Mocha and Jest. The example below is taken from the [integration spec](https://github.com/pact-foundation/pact-js/blob/master/src/pact.integration.spec.ts).
208
206
209
207
```javascript
210
208
constpath=require("path")
@@ -935,109 +933,24 @@ The workshop takes you through all of the key concepts using a React consumer an
935
933
-[Pact with TypeScript + Mocha](https://github.com/pact-foundation/pact-js/tree/master/examples/typescript)
936
934
-[Pact with Mocha](https://github.com/pact-foundation/pact-js/tree/master/examples/mocha)
937
935
-[Pact with GraphQL](https://github.com/pact-foundation/pact-js/tree/master/examples/graphql)
938
-
-[Pact with Karma + Jasmine](https://github.com/pact-foundation/pact-js/tree/master/examples/karma/jasmine)
939
-
-[Pact with Karma + Mocha](https://github.com/pact-foundation/pact-js/tree/master/examples/karma/mocha)
940
936
-[Pact with React + Jest](https://github.com/pact-foundation/pact-workshop-js)
- Ensure you install the package as `devDependencies` by using [`--save-dev`][npm-devdep]/[`--dev`][yarn-devdep] ;
971
-
- Make sure the `ignore-scripts` option is disabled, pact uses npm scripts to download further dependencies.
972
-
- If you're not using Karma, you can start and stop the mock server using [Pact Node](https://github.com/pact-foundation/pact-node) or something like [Grunt Pact](https://github.com/pact-foundation/grunt-pact).
973
-
974
-
### Using Pact with Karma
975
-
976
-
We have create a [plugin](https://github.com/pact-foundation/karma-pact) for Karma,
977
-
which will automatically start and stop any Mock Server for your Pact tests.
978
-
979
-
Modify your `karma.conf.js` file as per below to get started:
980
-
981
-
```js
982
-
// Load pact framework - this will start/stop mock server automatically
0 commit comments