An open API service indexing awesome lists of open source software.

https://github.com/ember-codemods/ember-test-onerror-codemod

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

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# ember-test-onerror-codemod

[![Build Status](https://travis-ci.com/ember-codemods/ember-test-onerror-codemod.svg?branch=master)](https://travis-ci.com/ember-codemods/ember-test-onerror-codemod)
[![npm version](https://badge.fury.io/js/ember-test-onerror-codemod.svg)](https://badge.fury.io/js/ember-test-onerror-codemod)

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 path/of/files/ or/some**/*glob.js

# or

yarn global add ember-test-onerror-codemod
ember-test-onerror-codemod path/of/files/ or/some**/*glob.js
```

## Transforms

* [remove-onerror-assignments](transforms/remove-onerror-assignments/README.md)
* [remove-onerror-sinon-stubs](transforms/remove-onerror-sinon-stubs/README.md)

## Contributing

### Installation

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

### Running tests

* `yarn test`

### Update Documentation

* `yarn update-docs`