Skip to content

sarvex/qwik-cypress

 
 

Repository files navigation


Qwik loves Cypress

Cypress Qwik plugin

The cypress component testing plugin for Qwik

cypress-ct-qwik npm MIT All Contributors

Table of Contents

Installation

npm install -D cypress-ct-qwik

Configuring Cypress

  1. Run cypress (in watch mode) after installation

  2. Follow the configuration wizard

  3. Add addQwikLoader to the cypress/support/component.ts file -

// component.ts
import { addQwikLoader } from 'cypress-ct-qwik';
addQwikLoader();

Pretty easy... 😊

Usage

// some-test.cy.ts

import MyComp from './my-comp';

describe(`Qwik Component Test`, () => {
  it('should find my link', () => {
    cy.mount(<MyComp />);

    cy.contains('myLink').should('exist');
  });
});

Contributing

Want to contribute? Yayy! 🎉

Please read and follow our Contributing Guidelines to learn what are the right steps to take before contributing your time, effort and code.

Thanks 🙏


Code Of Conduct

Be kind to each other and please read our code of conduct.


Contributors

Thanks goes to these wonderful people (emoji key):

Shai Reznik
Shai Reznik

💻 ⚠️ 🚇 📖 🚧 👀 🤔
Jordan Powell
Jordan Powell

💻 ⚠️ 🚇 👀 🤔 🚧

This project follows the all-contributors specification. Contributions of any kind welcome!


Related Links

License

MIT

About

Cypress component testing plugin for Qwik

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 78.6%
  • CSS 18.9%
  • HTML 1.3%
  • Other 1.2%