0.100.0 • Published 2 years ago
@automated/automated v0.100.0
Automated ⚙️
Automated is a test framework designed to simplify testing by standardizing.
With a few lines of code here’s what you get out of the box:
- Multiple viewport visual regression coverage
- Jest unit tests (via snapshots)
- Code coverage (can persist to CI)
- Storybook artifacts (can persist to CI)
- Isolated component development environment (Storybook)
Installation
__automated.tsx
Quick start
- Go to one of your components and let’s say the component is named “Foo”
- Put it in a folder called “foo” with the component file named
index.tsx
- Make the component the default export
- Add a sibling file named
__automated.tsx
, with the following contents
import Component from '.';
export default {
Component,
dirname: __dirname,
};
- Then run
yarn automated init
(You’ll see some files added). - Now you can run
yarn automated storybook
to see it in an isolated dev environment - Open another terminal and run
yarn automated jest
to generate snapshots and visual regression tests.
Examples
API
__automated.tsx
contents
export default {
// [required] the subject React component
Component,
// [required] this supports automatic naming
dirname: __dirname,
// an array of use-cases
useCases,
};
Contributing
# in one terminal
yarn nps dev
# in another
cd example && AUTOMATED_DEVELOPMENT=true yarn automated jest
0.100.0
2 years ago
0.95.0
2 years ago
0.96.0
2 years ago
0.86.0
2 years ago
0.91.0
2 years ago
0.93.0
2 years ago
0.94.0
2 years ago
0.99.0
2 years ago
0.88.0
2 years ago
0.89.0
2 years ago
0.84.0
3 years ago
0.80.0
3 years ago
0.83.0
3 years ago
0.77.0
3 years ago
0.76.0
3 years ago
0.75.0
3 years ago
0.1.0
3 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago