0.13.4 • Published 10 months ago

@muritavo/cypress-toolkit v0.13.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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.4

10 months ago

0.13.3

1 year ago

0.13.1

1 year ago

0.13.0

1 year ago

0.12.9

1 year ago

0.12.8

1 year ago

0.12.7

1 year ago

0.12.0

1 year ago

0.12.1

1 year ago

0.12.2

1 year ago

0.12.3

1 year ago

0.12.4

1 year ago

0.12.5

1 year ago

0.12.6

1 year ago

0.11.2

1 year ago

0.11.3

1 year ago

0.11.0

2 years ago

0.10.1

2 years ago

0.10.0

2 years ago

0.9.4

2 years ago

0.9.3

2 years ago

0.9.2

2 years ago

0.9.0

2 years ago

0.9.1

2 years ago

0.8.4

2 years ago

0.8.1

2 years ago

0.8.3

2 years ago

0.8.2

2 years ago

0.8.0

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.3-rc2

3 years ago

0.0.3-rc1

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago