@sharyn/testing

This package provides testing helpers.

Usage no npm install needed!

<script type="module">
  import sharynTesting from 'https://cdn.skypack.dev/@sharyn/testing';
</script>

README

🌹 @sharyn/testing

npm

This package provides testing helpers.

🌹 Install

yarn add --dev @sharyn/testing

🌹 Usage

sel

A short helper to target data-test attributes with a selector.

import { sel } from '@sharyn/testing'

console.log(sel('hey')) // '[data-test="hey"]'

expect(page).toClick(sel('submit-button'))