/ember-test-onerror-codemod

A codemod for converting test usages of Ember.onerror stubbing to use @ember/test-helpers' setupOnerror

Primary LanguageJavaScript

ember-test-onerror-codemod

Build Status npm version

A collection of codemod's for ember-test-onerror-codemod.

Usage

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

npx ember-test-onerror-codemod <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

# or

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

Transforms

Contributing

Installation

  • clone the repo
  • change into the repo directory
  • yarn

Running tests

  • yarn test

Update Documentation

  • yarn update-docs