Skip to content

Commit bcc1908

Browse files
committed
Tweak Readme
1 parent b350782 commit bcc1908

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# ember-test-helpers-codemod
22

33
[![Build Status](https://travis-ci.org/simonihmig/ember-test-helpers-codemod.svg?branch=master)](https://travis-ci.org/simonihmig/ember-test-helpers-codemod)
4+
[![npm version](https://badge.fury.io/js/ember-test-helpers-codemod.svg)](https://badge.fury.io/js/ember-test-helpers-codemod)
45

5-
A [jscodeshift](https://github.com/facebook/jscodeshift) based codemod to help migrating your jQuery based Ember tests to [@ember/test-helpers](https://github.com/emberjs/ember-test-helpers).
6+
A [jscodeshift](https://github.com/facebook/jscodeshift) based codemod to help migrating your jQuery or
7+
`ember-native-dom-helpers` based Ember tests to [`@ember/test-helpers`](https://github.com/emberjs/ember-test-helpers).
68

79
*Please note that this will not be able to cover all possible cases how jQuery based tests can be written.
810
Given the dynamic nature of JavaScript and the extensive API and fluent interface of jQuery, this would be impossible.
@@ -14,7 +16,7 @@ So it is likely that you will have to manually migrate some usages this tool can
1416
**This package requires Node 6 or later. Make sure you are using a newer version
1517
of Node before installing and running this package.**
1618

17-
**WARNING**: `jscodeshift`, and thus this codemod, **edit your files in place**.
19+
**WARNING**: `jscodeshift`, and thus this codemod, **edits your files in place**.
1820
It does not make a copy. Make sure your code is checked into a source control
1921
repository like Git and that you have no outstanding changes to commit before
2022
running this tool.
@@ -101,11 +103,6 @@ These transformations are available for tests based on `ember-native-dom-helpers
101103
|---------------------------------------|-------------------------|----------------|
102104
| ```import { click, find, findAll, fillIn, focus, blur, triggerEvent, keyEvent, waitFor, waitUntil } from 'ember-native-dom-helpers';``` | ```import { click, find, findAll, fillIn, focus, blur, triggerEvent, triggerKeyEvent, waitFor, waitUntil } from '@ember/test-helpers';``` | `migrate-imports.js` |
103105

104-
If you want to run only selected transforms on your code, you can pick just the needed transform:
105-
106-
```bash
107-
jscodeshift -t path/to/ember-test-helpers-codemod/lib/transforms/native-dom/find.js tests/integration
108-
```
109106

110107
### Replace find/findAll
111108

0 commit comments

Comments
 (0)