# ember-test-convert-object-selectors-codemod

> Contains a codemod to replace object selectors in `assert.dom`, `find`, `click` or `fillIn` with their corresponding string values.

Latest version **0.1.3** (published 2020-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-test-convert-object-selectors-codemod
pnpm add ember-test-convert-object-selectors-codemod
yarn add ember-test-convert-object-selectors-codemod
bun add ember-test-convert-object-selectors-codemod
```

Provides the command `ember-test-convert-object-selectors-codemod`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2020-07-15 |
| First published | 2020-07-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | nadinerao |
| Keywords | codemod-cli |

## Links

- npm: https://www.npmjs.com/package/ember-test-convert-object-selectors-codemod
- npm.io page: https://npm.io/package/ember-test-convert-object-selectors-codemod

## Dependencies (1)

- [codemod-cli](https://npm.io/package/codemod-cli.md) ^0.2.10

## Recent versions

- 0.1.3 (latest) — 2020-07-15
- 0.1.2 — 2020-07-15
- 0.1.1 — 2020-07-15
- 0.1.0 — 2020-07-15

## README

# ember-test-convert-object-selectors-codemod
Contains a codemod to replace object selectors in `assert.dom`, `find`, `click` or `fillIn` with their corresponding string values.

## Motivation
Selectors assigned to variables in tests can allow the selectors to be shared across multiple tests, and in fact across multiple test modules. However in a larger application, doing so can make tests harder to read, understand, and follow. Using the selector string instead of a variable keeps the test more atomic, allows the test to be more resilient when changes to the selector occur outside the test, and ensures the test is readable top-to-bottom.

## Usage

To run a specific codemod from this project, you would run the following:

```
npx ember-test-convert-object-selectors-codemod <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

# or

yarn global add ember-test-convert-object-selectors-codemod
ember-test-convert-object-selectors-codemod <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
```

## Transforms

<!--TRANSFORMS_START-->
* [convert-object-selectors-in-tests](transforms/convert-object-selectors-in-tests/README.md)
<!--TRANSFORMS_END-->

## Contributing

### Installation

* clone the repo
* change into the repo directory
* `yarn`

### Running tests

* `yarn test`

### Update Documentation

* `yarn update-docs`

---
_Source: https://npm.io/package/ember-test-convert-object-selectors-codemod · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
