Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The following packages have been upgraded: - `@pollyjs/adapter-node-http` - `@pollyjs/core` - `@pollyjs/persister-fs` The new Polly.JS packages ship with TypeScript definition files, so the old `@type/pollyjs__` packages have been removed! Additionally, `fs-extra` has been pinned to semver range `^9.0.0` because there a change was released in `^10.0.0` that caused a regression. See: jprichardson/node-fs-extra#953.
- Loading branch information
1 parent
dcd4477
commit a663060
Showing
10 changed files
with
155 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,5 +35,8 @@ | |
"ts-jest": "^27.1.0", | ||
"typescript": "^4.2.4" | ||
}, | ||
"resolutions": { | ||
"fs-extra": "^9.0.0" | ||
}, | ||
"version": "0.0.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/integration-sdk-cli/src/__tests__/util/recording.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Polly, PollyConfig } from '@pollyjs/core'; | ||
|
||
export function createTestPolly( | ||
recordingName: string, | ||
pollyConfigOverrides?: PollyConfig, | ||
) { | ||
return new Polly(recordingName, { | ||
adapters: ['node-http'], | ||
persister: 'fs', | ||
logLevel: 'silent', | ||
matchRequestsBy: { | ||
headers: false, | ||
}, | ||
...pollyConfigOverrides, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.