An open API service indexing awesome lists of open source software.

https://github.com/qwikifiers/cypress-qwik

Cypress component testing plugin for Qwik
https://github.com/qwikifiers/cypress-qwik

Last synced: 2 months ago
JSON representation

Cypress component testing plugin for Qwik

Awesome Lists containing this project

README

          




Qwik loves Cypress




Cypress Qwik plugin


The cypress component testing plugin for Qwik



cypress-ct-qwik npm


MIT


All Contributors



## Table of Contents

- [Installation](#installation)
- [Configuring Cypress](#configuring-cypress)
- [Usage](#usage)
- [Contributing](#contributing)
- [Code Of Conduct](#code-of-conduct)
- [Contributors](#contributors)
- [Related Links](#related-links)
- [License](#license)

## Installation

```console
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 -

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

```

Pretty easy... 😊

## Usage

```ts
// some-test.cy.ts

import MyComp from './my-comp';

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

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


## Contributing

Want to contribute? Yayy! 🎉

Please read and follow our [Contributing Guidelines](CONTRIBUTING.md) 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](CODE_OF_CONDUCT.md).


## Contributors

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



Shai Reznik
Shai Reznik

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

💻 ⚠️ 🚇 👀 🤔 🚧

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!


## Related Links

- [Cypress-Qwik Discord](https://discord.gg/PVWUUejrez)
- [Qwik Discord](https://qwik.builder.io/chat)
- [Qwik Docs](https://qwik.builder.io/)
- [Cypress Docs](https://www.cypress.io/)

## License

MIT