How To Use Custom Test Helper In Ember.js
I generated a custom test helper with: ember generate test-helper integration-for Here it is with its code removed: // tests/helpers/integration-for.js import Ember from 'ember';
Solution 1:
You need to do following things, add helper to tests/.jshintc. Something like this.
{
"predef": [
"document",
"window",
"location",
...
"shouldHaveElementWithCount",
"dblclick",
"addContact",
"integrationFor"
],
...
}
And you need to import helper file in tests/helpers/start-app.js
import integrationFor from"./integration-for";
Post a Comment for "How To Use Custom Test Helper In Ember.js"