cypress-replay
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -9,2 +9,2 @@ export type ReplayConfig = { | ||
} | ||
export default function enableCypressReplay(mode: ReplayMode | undefined): void; | ||
export default function enableCypressReplay(mode?: ReplayMode | null): void; |
@@ -14,4 +14,4 @@ "use strict"; | ||
})(ReplayMode = exports.ReplayMode || (exports.ReplayMode = {})); | ||
function enableCypressReplay(mode) { | ||
const replayMode = mode !== undefined ? mode : (Cypress.env('REPLAY_RECORD_REQUESTS') ? ReplayMode.Recording : ReplayMode.Replaying); | ||
function enableCypressReplay(mode = null) { | ||
const replayMode = mode !== null ? mode : (Cypress.env('REPLAY_RECORD_REQUESTS') ? ReplayMode.Recording : ReplayMode.Replaying); | ||
if (replayMode === ReplayMode.Recording) { | ||
@@ -18,0 +18,0 @@ (0, recordRequests_1.default)(); |
{ | ||
"name": "cypress-replay", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
@@ -11,2 +11,7 @@ Cypress Replay | ||
``` | ||
yarn add --dev cypress-replay | ||
npm install --save-dev cypress-replay | ||
``` | ||
Add the following configuration line to your `cypress.config.ts` file: | ||
@@ -13,0 +18,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18954
64