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.
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 :)
Contribution is also welcome
yarn add -D @muritavo/cypress-toolkit
/// <reference types="@muritavo/cypress-toolkit"/>
// 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;
},
...
},
...
})
// at cypress/support/commands.ts
import "@muritavo/cypress-toolkit/dist/support/essentials";
Generated using TypeDoc