ember-qunit-codemod icon indicating copy to clipboard operation
ember-qunit-codemod copied to clipboard

Results 17 ember-qunit-codemod issues
Sort by recently updated
recently updated
newest added

Currently, the codemod doesn't update the test-helper.js file. This has bitten me 2 times already, and I'm dumb so I pretty much always forget to update it. We should add...

Before: ```js moduleForComponent('bs-form/element', 'Integration | Component | bs-form/element', { integration: true }); const foo = 'bar'; ``` After: ```js module('Integration | Component | bs-form/element', function(hooks) { setupRenderingTest(hooks); const foo =...

I have some injections on my controller (inside of an engine) which worked, but after running the codemod I'm getting errors: `Attempting to inject an unknown injection: 'router:main` I imagine...

bug

```js let helper = this.owner.lookup('helper:format-duration'); // before: let helper = this.subject(); let result = helper.compute([convertToMS(59, 'minutes')]); assert.equal(result, '59 min'); ``` fails with: ``` TypeError: helper.compute is not a function ```

bug

We went off the path a bit and have some model tests that are testing models which are simple EmberObjects. The following input: `const worker = this.subject({ user });` Produces...

Input: ```js moduleFor('service:foo', callSomeMethod()); test('stuff here', function(assert) { // ...snip... }); ``` Suggested output: ```js import { module } from 'qunit'; import { setupTest } from 'ember-qunit'; let options =...

bug