refactor(http-recorder): hide cassette format behind Cassette seam (#26725)
This commit is contained in:
parent
fa15dbc5ec
commit
2bd3d9a696
10 changed files with 224 additions and 230 deletions
|
|
@ -52,9 +52,10 @@ export const isHttpInteraction = InteractionSchema.guards.http
|
|||
|
||||
export const isWebSocketInteraction = InteractionSchema.guards.websocket
|
||||
|
||||
export const httpInteractions = (cassette: Cassette) => cassette.interactions.filter(isHttpInteraction)
|
||||
export const httpInteractions = (interactions: ReadonlyArray<Interaction>) => interactions.filter(isHttpInteraction)
|
||||
|
||||
export const webSocketInteractions = (cassette: Cassette) => cassette.interactions.filter(isWebSocketInteraction)
|
||||
export const webSocketInteractions = (interactions: ReadonlyArray<Interaction>) =>
|
||||
interactions.filter(isWebSocketInteraction)
|
||||
|
||||
export const CassetteSchema = Schema.Struct({
|
||||
version: Schema.Literal(1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue