mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 15:51:31 +00:00
- @open-wc/chai-dom-equals@0.10.2 - @open-wc/create@0.5.0 - @open-wc/eslint-config@0.4.2 - @open-wc/semantic-dom-diff@0.8.1 - @open-wc/testing-helpers@0.8.2 - @open-wc/testing-karma-bs@0.2.17 - @open-wc/testing-wallaby@0.1.12 - @open-wc/testing@0.10.2
Testing in IDE via Wallaby
Wallaby.js is a Plugin for your IDE and runs tests in real time while you are typing.
Using:
- In IDE Testing via wallaby.js
Setup
npm init @open-wc testing-wallaby
Manual
- Copy the config and save it as
wallaby.jsinto your project root yarn add @open-wc/testing-wallaby --dev
Usage
Open your wallaby.js supported IDE and start with the provided config.
Example
The Set-Game Example has Wallaby Setup.
<script> export default { mounted() { const editLink = document.querySelector('.edit-link a'); if (editLink) { const url = editLink.href; editLink.href = url.substr(0, url.indexOf('/master/')) + '/master/packages/testing-wallaby/README.md'; } } } </script>