# @automated/automated

> Use-case-oriented testing

Latest version **0.100.0** (published 2022-09-07) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @automated/automated
pnpm add @automated/automated
yarn add @automated/automated
bun add @automated/automated
```

Provides the command `automated`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.100.0 |
| Published | 2022-09-07 |
| First published | 2017-11-12 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14.17.5 |
| Dependencies | 1 |
| Unpacked size | 61.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Contributors |
| Maintainers | kirkstrobeck |
| Keywords | test, testing, coverage |

## Links

- npm: https://www.npmjs.com/package/@automated/automated
- Repository: https://github.com/automated/automated
- Issues: https://github.com/automated/automated/issues
- npm.io page: https://npm.io/package/@automated/automated

## Dependencies (1)

- [wait-on](https://npm.io/package/wait-on.md) ^6.0.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.100.0 (latest) — 2022-09-07
- 0.99.0 — 2022-02-08
- 0.96.0 — 2022-02-08
- 0.95.0 — 2022-02-08
- 0.94.0 — 2022-02-07
- 0.93.0 — 2022-02-06
- 0.91.0 — 2022-02-06
- 0.89.0 — 2022-02-06
- 0.88.0 — 2022-01-31
- 0.86.0 — 2021-12-19
- 0.84.0 — 2021-10-25
- 0.83.0 — 2021-10-25
- 0.80.0 — 2021-10-25
- 0.77.0 — 2021-10-25
- 0.76.0 — 2021-10-11
- … 5 more at https://npm.io/package/@automated/automated/versions

## README

# 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:

1. Multiple viewport visual regression coverage
3. Jest unit tests (via snapshots)
4. Code coverage (can persist to CI)
6. Storybook artifacts (can persist to CI)
7. Isolated component development environment (Storybook)

# Installation

## `__automated.tsx`

### Quick start

1. Go to one of your components and let’s say the component is named “Foo”
1. Put it in a folder called “foo” with the component file named `index.tsx`
1. Make the component the default export
1. Add a sibling file named `__automated.tsx`, with the following contents

```tsx
import Component from '.';

export default {
  Component,
  dirname: __dirname,
};
```

1. Then run `yarn automated init` (You’ll see some files added).
1. Now you can run `yarn automated storybook` to see it in an isolated dev environment
1. Open another terminal and run `yarn automated jest` to generate snapshots and visual regression tests.

### Examples

1. [Least content example](example/src/components/warning/__automated.tsx)
2. [More robust](example/src/components/button/__automated.tsx)

### API

`__automated.tsx` contents

```tsx
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
```

---
_Source: https://npm.io/package/@automated/automated · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
