Codemod for ember-test-selectors users to migrate from positional params to named arguments
ember-test-selectors allowed developers to use positional arguments:
... instead of named arguments for their test selectors:
This was done to have a more convenient API in some cases but turned out to cause confusion and is no longer needed when using Angle Bracket Syntax:
This codemod will turn positional data-test-foo selectors into their
equivalent data-test-foo=true named selector.
npx ember-test-selectors-params-codemodThis will automatically run the codemod on all .hbs files in your app and
addon folders (if they exist). If you want to run the codemod on other
folders or files you can also pass a glob pattern:
npx ember-test-selectors-params-codemod /some/other/folder/**/*.hbsThis projects is developed by and © simplabs GmbH and contributors. It is released under the MIT License.