You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letmessage=`\`${backingClassPath}\` contains an \`export { default }\` re-export, but it has a co-located template. You must explicitly extend the component to assign it a different template.`;
155
+
jsContents=`${jsContents}\nthrow new Error(${JSON.stringify(message)});`;
export { default } from 'some-place';\nthrow new Error(\"\`app-name-here/components/foo.js\` contains an \`export { default }\` re-export, but it has a co-located template. You must explicitly extend the component to assign it a different template.\");
214
+
`,
215
+
},
216
+
templates: {
217
+
'application.hbs': '{{outlet}}',
218
+
},
219
+
},
220
+
});
221
+
222
+
awaitoutput.build();
223
+
224
+
assert.deepStrictEqual(output.changes(),{},'NOOP update has no changes');
225
+
226
+
input.write({
227
+
'app-name-here': {
228
+
'router.js': '// other stuff here',
229
+
},
230
+
});
231
+
232
+
awaitoutput.build();
233
+
234
+
assert.deepStrictEqual(
235
+
output.changes(),
236
+
{'app-name-here/router.js': 'change'},
237
+
'has only related changes'
238
+
);
239
+
});
240
+
189
241
it('works for typescript component class with template',asyncfunction(){
190
242
input.write({
191
243
'app-name-here': {
@@ -500,7 +552,7 @@ describe('ColocatedTemplateCompiler', function () {
500
552
'app-name-here': {
501
553
components: {
502
554
'foo.js': stripIndent`
503
-
export function whatever() {}\nthrow new Error("\`app-name-here/components/foo.hbs\` does not contain a \`default export\`. Did you forget to export the component class?");
555
+
export function whatever() {}\nthrow new Error("\`app-name-here/components/foo.js\` does not contain a \`default export\`. Did you forget to export the component class?");
export function whatever() {}\nthrow new Error("\`app-name-here/components/foo.hbs\` does not contain a \`default export\`. Did you forget to export the component class?");
410
+
export function whatever() {}\nthrow new Error("\`app-name-here/components/foo.js\` does not contain a \`default export\`. Did you forget to export the component class?");
export function whatever() {}\nthrow new Error("\`app-name-here/components/foo.hbs\` does not contain a \`default export\`. Did you forget to export the component class?");
800
+
export function whatever() {}\nthrow new Error("\`app-name-here/components/foo.js\` does not contain a \`default export\`. Did you forget to export the component class?");
0 commit comments