File tree 5 files changed +5
-4
lines changed
blueprints/component-test
qunit-rfc-232-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 @@ -130,6 +130,7 @@ module.exports = useTestFrameworkDetector({
130
130
selfCloseComponent,
131
131
friendlyTestDescription,
132
132
hbsImportStatement,
133
+ pkgName : options . project . pkg . name ,
133
134
} ;
134
135
} ,
135
136
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 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