0.13.3 • Published 8 days ago

@muritavo/cypress-toolkit v0.13.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 days ago

npm

Introduction

Cypress is an automation tool that (recently) can isolate and test components directly in the browser

More information can be found at https://docs.cypress.io/guides/component-testing/writing-your-first-component-test

This can be usefull for a full automation testing, including logic, compatibility and UI testing.

What is the purpose of this library

Here I will be including a series of usefull tools for facilitating testing with cypress

To check the commands, you can take a look at index.d.ts.

Let's hope everything is nicely documented :)

You can also find the documentation for each command at: https://muritavo-co.web.app

Contribution is also welcome

Before using

  • Even though the objective of this library is to be a generic toolkit, it can feel a little opinated.

How to use

  • Install this library with yarn add -D @muritavo/cypress-toolkit
  • For better intelisense support, include the typings at your cypress/support/commands.ts file. If you don't have it, you can include it on any ts file inside your project. I suggest to create a ts file at cypress/cypress.d.ts
/// <reference types="@muritavo/cypress-toolkit"/>
  • Intercept the cypress config and include this library setup with
// at cypress.config.ts

import setup from '@muritavo/cypress-toolkit/dist/scripts/config'

...
...
export default defineConfig({
    ...
    component: {
        ...,
        setupNodeEvents: (on, config) => {
            ...
            const config = setup(on, config);
            ...
            return config;
        },
        ...
    },
    ...
})
  • Enable the custom commands by including this library like so:
// at cypress/support/commands.ts
import "@muritavo/cypress-toolkit/dist/support/essentials";
0.13.3

8 days ago

0.13.1

17 days ago

0.13.0

2 months ago

0.12.9

4 months ago

0.12.8

4 months ago

0.12.7

4 months ago

0.12.0

4 months ago

0.12.1

4 months ago

0.12.2

4 months ago

0.12.3

4 months ago

0.12.4

4 months ago

0.12.5

4 months ago

0.12.6

4 months ago

0.11.2

5 months ago

0.11.3

5 months ago

0.11.0

6 months ago

0.10.1

7 months ago

0.10.0

8 months ago

0.9.4

1 year ago

0.9.3

1 year ago

0.9.2

1 year ago

0.9.0

1 year ago

0.9.1

1 year ago

0.8.4

1 year ago

0.8.1

1 year ago

0.8.3

1 year ago

0.8.2

1 year ago

0.8.0

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.3-rc2

2 years ago

0.0.3-rc1

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago