tes

@sharyn/testing

npm i @sharyn/testing

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'))

Jump To