File tree 5 files changed +5
-4
lines changed
blueprints/component-test
files/__root__/__testType__/__path__
node-tests/fixtures/component-test
5 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
< % if (testType === ' integration' ) { % > import { module , test } from ' qunit' ;
2
2
import { setupRenderingTest } from ' <%= modulePrefix %>/tests/helpers' ;
3
3
import { render } from ' @ember/test-helpers' ;
4
- import <%= componentName %> from ' <%= modulePrefix %>/components/<%= componentPathName %>' ;
4
+ import <%= componentName %> from ' <%= pkgName %>/components/<%= componentPathName %>' ;
5
5
6
6
module (' <%= friendlyTestDescription %>' , function (hooks ) {
7
7
setupRenderingTest (hooks);
Original file line number Diff line number Diff line change 1
1
< % if (testType === ' integration' ) { % > import { module , test } from ' qunit' ;
2
2
import { setupRenderingTest } from ' <%= modulePrefix %>/tests/helpers' ;
3
3
import { render } from ' @ember/test-helpers' ;
4
- import <%= componentName %> from ' <%= modulePrefix %>/components/<%= componentPathName %>' ;
4
+ import <%= componentName %> from ' <%= pkgName %>/components/<%= componentPathName %>' ;
5
5
6
6
module (' <%= friendlyTestDescription %>' , function (hooks ) {
7
7
setupRenderingTest (hooks );
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ module.exports = {
129
129
selfCloseComponent,
130
130
friendlyTestDescription,
131
131
hbsImportStatement,
132
+ pkgName : options . project . pkg . name ,
132
133
} ;
133
134
} ,
134
135
Original file line number Diff line number Diff line change 1
1
import { module , test } from ' qunit' ;
2
2
import { setupRenderingTest } from ' dummy/tests/helpers' ;
3
3
import { render } from ' @ember/test-helpers' ;
4
- import Foo from ' dummy /components/foo' ;
4
+ import Foo from ' my-addon /components/foo' ;
5
5
6
6
module (' Integration | Component | foo' , function (hooks ) {
7
7
setupRenderingTest (hooks);
Original file line number Diff line number Diff line change 1
1
import { module , test } from ' qunit' ;
2
2
import { setupRenderingTest } from ' dummy/tests/helpers' ;
3
3
import { render } from ' @ember/test-helpers' ;
4
- import Foo from ' dummy /components/foo' ;
4
+ import Foo from ' my-addon /components/foo' ;
5
5
6
6
module (' Integration | Component | foo' , function (hooks ) {
7
7
setupRenderingTest (hooks );
You can’t perform that action at this time.
0 commit comments