Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ember-qunit-codemod

ember-codemods339MIT1.2.2

codemod script for ember-qunit

codemod, codemod-cli, qunit

readme

ember-qunit-codemod

This codemod is intended to automatically convert your projects from the older moduleFor* syntax of ember-qunit@2 to the newer syntax proposed by emberjs/rfcs#232.

This codemod can be used in conjunction with ember-test-helpers-codemod.

Usage

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

npx ember-qunit-codemod convert-module-for-to-setup-test path/of/files/ or/some**/*glob.js

# or

yarn global add ember-qunit-codemod
ember-qunit-codemod convert-module-for-to-setup-test 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

Credit

ember-qunit-codemod is heavily inspired by the work done in qunit-dom-codemod and ember-mocha-codemods largely by Tobias Bieniek. Thank you!

changelog

v1.2.2 (2020-08-24)

:bug: Bug Fix

  • #204 fix: handle async lifecycle hooks like beforeEach (@bmish)

Committers: 1

v1.2.1 (2019-09-09)

:bug: Bug Fix

Committers: 1