1.0.6 • Published 1 year ago

cypress-codemod v1.0.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

cypress-codemod

A codemod for migrating React Testing Library or Enzyme tests to Cypress component tests!

Usage

Run against a single test file:

npx cypress-codemod --filePath path/to/my-test.tsx

Run recursively against all files in directory:

npx cypress-codemod --directory path/to/directory-containing-tests/

CLI Options

OptionTypeDescription
--filePath, -fStringA path to a test file to migrate. If ommitted, --directory is required.
--directory, -dStringA directory containing test files to migrate. If ommitted, --filePath is required.
--customMountCommandStringA custom command to use instead of cy.mount()
--customDOMEmptyCommandStringA custom command to use for asserting the DOM is empty.
1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago