@monorepo-template/ignore-cypress-dependency-logs
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Ignore Cypress dependency logs

The ignoreCypressDependencyLogs module creates a Cypress beforeEach hook to ignore logs emit by third-party dependencies.

Install

yarn add --dev "@monorepo-template/ignore-cypress-dependency-logs"

Use

In your Cypress support file, typically cypress/support/e2e.ts, import and execute the ignoreCypressDependencyLogs function.

import ignoreCypressDependencyLogs from '@monorepo-template/ignore-cypress-dependency-logs';

beforeEach(
  ignoreCypressDependencyLogs([
    'https://cloudflareinsights.com/', // ignore Cloudflare
    'https://o592283.ingest.sentry.io/', // ignore Sentry
    'https://rum.browser-intake-datadoghq.com/', // ignore Datadog
    'https://session-replay.browser-intake-datadoghq.com/', // ignore Datadog
  ]),
);

Readme

Keywords

none

Package Sidebar

Install

npm i @monorepo-template/ignore-cypress-dependency-logs

Weekly Downloads

68

Version

1.0.0

License

MIT

Unpacked Size

6.82 kB

Total Files

10

Last publish

Collaborators

  • charlesstover