Here is a basic component / integration test for ember-qunit.
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('my-component', 'TODO: put something here', {
integration: true
});
test('it renders', function(assert) {
this.render(hbs``);
console.log('This is the rendered element', this.$()[0]);
assert.ok(false);
});
I have an ember-addon with a directory structure like this:
addon/
app/
tests/
.. integration/
.... components/
...... my-component-test.js
How does ember determine where is?
This is kind of in the same vein as this:
How does Ember-CLI precompile templates?
Aucun commentaire:
Enregistrer un commentaire