Socket
Socket
Sign inDemoInstall

cypress-plugin-xhr-toggle

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-plugin-xhr-toggle

Turn off xhr requests in Cypress timeline


Version published
Weekly downloads
7.7K
decreased by-19.27%
Maintainers
1
Weekly downloads
 
Created
Source

Cypress XHR toggle plugin

A small Cypress helper that de-clutters your timeline by hiding XHR requests.

Toggle XHR in timeline

Installation

Install this package:

npm i cypress-plugin-xhr-toggle
# or
yarn add cypress-plugin-xhr-toggle

Import the plugin into your cypress/support/e2e.js file:

import 'cypress-plugin-xhr-toggle'
// or
require('cypress-plugin-xhr-toggle')

Usage

Open Cypress in GUI mode and see a new button. Click on it to hide all your XHR lines to de-clutter your timeline. You can set this up as default behavior by setting up hideXhr into your env object:

import { defineConfig } from "cypress";

export default defineConfig({
  fixturesFolder: false,
  e2e: {
    setupNodeEvents(on, config) {},
    env: {
      hideXhr: true
    }
  },
});

...powered by coffee and love ❤️ Filip Hric

FAQs

Package last updated on 18 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc