node-tdd 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/modules/request-recorder.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ Can be used in the following ways:
|
|
|
86
86
|
- `--nock-heal response`: Will try to heal responses
|
|
87
87
|
- `--nock-heal record`: Will record the next unmatched request
|
|
88
88
|
- `--nock-heal stub`: Will stub the next unmatched request
|
|
89
|
-
- `--nock-heal magic`: Shorthand for `
|
|
89
|
+
- `--nock-heal magic`: Shorthand for `headers,body,path,response`
|
|
90
90
|
|
|
91
91
|
Notes:
|
|
92
92
|
- Different flags can be combined as e.g. `--nock-heal body,path`
|
|
@@ -240,7 +240,7 @@ module.exports = opts => {
|
|
|
240
240
|
nockMock.unpatch();
|
|
241
241
|
|
|
242
242
|
if (opts.heal !== false) {
|
|
243
|
-
fs.smartWrite(cassetteFilePath, anyFlagPresent(['
|
|
243
|
+
fs.smartWrite(cassetteFilePath, anyFlagPresent(['prune']) ? expectedCassette : [...expectedCassette, ...pendingMocks.map(({
|
|
244
244
|
record
|
|
245
245
|
}) => record)], {
|
|
246
246
|
keepOrder: outOfOrderErrors.length === 0 && pendingMocks.length === 0
|