2.0.4 • Published 6 years ago
@sharyn/testing v2.0.4
🌹 @sharyn/testing
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'))