1.1.1 • Published 8 years ago
@sharyn/testing v1.1.1
🌹 @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'))