ember-test-helpers-codemod icon indicating copy to clipboard operation
ember-test-helpers-codemod copied to clipboard

Codemod to transform your Ember tests to use @ember/test-helpers

Results 8 ember-test-helpers-codemod issues
Sort by recently updated
recently updated
newest added
trafficstars

I was trying to upgrade from ember 3.28.4 to 4.2.0 and got this error when running the codemod. ``` Stack trace: SyntaxError: Identifier 'click' has already been declared. (13:7) at...

Previous `ember-test-helper-api-migration` transform does not support the following case: From ```js import { click } from '@ember/test-helpers'; import { TestContext } from 'ember-test-helpers'; /** @type {TestContext['setProperties']} */ let setProperties; ```...

I'm running this codemod as part of `ember-cli-update` and I get the following error: ```bash ➜ ember-arcgis-server-services git:(chore/ember-3-5) ember-cli-update --run-codemods ? These codemods apply to your project. Select which ones...

If this code mod is run on an app a second time (to update more tests that have since been added), then it does this: ```js click('button'); // Intentionally no...

I'm getting this in all files that import `ember-native-dom-helpers`, so it includes `currentURL` as well. ``` ERR tests/acceptance/login-test.js Transformation error (Transformation visit.js errored on file tests/acceptance/login-test.js. Reason SyntaxError: Identifier 'currentPath'...

According to the discussion here https://github.com/emberjs/ember-test-helpers/issues/351#issuecomment-456881507 `find`/`findAll` should be avoided. I found the reason here: https://github.com/simonihmig/ember-test-helpers-codemod/issues/6 but maybe it should be mentioned somewhere that it's not recommended way and that...

When native-dom transforms `find(selector, context)` or `findAll(selector, context)` the (now) unused specifiers remain in the import statement

Meant to migrate use cases where users chained `.find`.

invalid