Testing in IDE via Wallaby
Part of Open Web Components
Open Web Components provides a set of defaults, recommendations and tools to help facilitate your web component project. Our recommendations include: developing, linting, testing, building, tooling, demoing, publishing and automating.
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
Manual
- Copy the config and save it as
wallaby.js
into your project root npm i -D @open-wc/testing-wallaby
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>