diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/error.txt b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/error.txt similarity index 100% rename from packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/error.txt rename to packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/error.txt diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/expected.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/expected.html new file mode 100644 index 0000000000..c9d7568cf8 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/expected.html @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/index.js similarity index 100% rename from packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/index.js rename to packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/index.js diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/component/component.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/component/component.html new file mode 100644 index 0000000000..2f5dab118f --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/component/component.html @@ -0,0 +1,3 @@ + diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/component/component.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/component/component.js new file mode 100644 index 0000000000..f7c1d9bb5a --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/component/component.js @@ -0,0 +1,5 @@ +import FancyElement from 'x/fancyElement'; + +export default class extends FancyElement { + hello = 'foobar'; +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/fancyElement/fancyElement.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/fancyElement/fancyElement.js new file mode 100644 index 0000000000..7cccea449d --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/fancyElement/fancyElement.js @@ -0,0 +1,8 @@ +import { LightningElement } from 'lwc'; +import tmpl from './tmpl.html'; + +export default class extends LightningElement { + render() { + return tmpl; + } +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/modules/x/fancyElement/fancyElement.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/fancyElement/tmpl.html similarity index 100% rename from packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/modules/x/fancyElement/fancyElement.html rename to packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/fancyElement/tmpl.html diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/error.txt b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/error.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/expected.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/expected.html similarity index 100% rename from packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/expected.html rename to packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/expected.html diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/index.js new file mode 100644 index 0000000000..cd34090d2c --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/index.js @@ -0,0 +1,3 @@ +export const tagName = 'x-component'; +export { default } from 'x/component'; +export * from 'x/component'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/modules/x/component/component.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/modules/x/component/component.js similarity index 100% rename from packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/modules/x/component/component.js rename to packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/modules/x/component/component.js diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/modules/x/fancyElement/fancyElement.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/modules/x/fancyElement/fancyElement.html new file mode 100644 index 0000000000..4668ade7da --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/modules/x/fancyElement/fancyElement.html @@ -0,0 +1,3 @@ + diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/modules/x/fancyElement/fancyElement.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/modules/x/fancyElement/fancyElement.js similarity index 100% rename from packages/@lwc/engine-server/src/__tests__/fixtures/superclass/basic/modules/x/fancyElement/fancyElement.js rename to packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/basic/modules/x/fancyElement/fancyElement.js diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/error.txt b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/error.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/expected.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/expected.html new file mode 100644 index 0000000000..6334f2b8af --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/expected.html @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/index.js new file mode 100644 index 0000000000..5ab115aa5b --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/index.js @@ -0,0 +1,3 @@ +export const tagName = 'x-sub'; +export { default } from 'x/sub'; +export * from 'x/sub'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/sub/sub.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/sub/sub.js new file mode 100644 index 0000000000..c00d0bcd1e --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/sub/sub.js @@ -0,0 +1,10 @@ +import Super from 'x/super'; +import template from './template.html'; + +export default class extends Super { + name = 'world'; + + render() { + return template; + } +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/sub/template.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/sub/template.html new file mode 100644 index 0000000000..996a6c2829 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/sub/template.html @@ -0,0 +1,3 @@ + diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/super/super.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/super/super.html new file mode 100644 index 0000000000..dfc881e96c --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/super/super.html @@ -0,0 +1,3 @@ + diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/super/super.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/super/super.js new file mode 100644 index 0000000000..ca8dce94e0 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/render-in-subclass/modules/x/super/super.js @@ -0,0 +1,3 @@ +import { LightningElement } from 'lwc'; + +export default class extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/error.txt b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/error.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/expected.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/expected.html new file mode 100644 index 0000000000..10d4747c0e --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/expected.html @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/index.js new file mode 100644 index 0000000000..5ab115aa5b --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/index.js @@ -0,0 +1,3 @@ +export const tagName = 'x-sub'; +export { default } from 'x/sub'; +export * from 'x/sub'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/sub/sub.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/sub/sub.js new file mode 100644 index 0000000000..f231ea175d --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/sub/sub.js @@ -0,0 +1,5 @@ +import Super from 'x/super'; + +export default class extends Super { + name = 'world'; +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/super/super.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/super/super.html new file mode 100644 index 0000000000..61b7172956 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/super/super.html @@ -0,0 +1,3 @@ + diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/super/super.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/super/super.js new file mode 100644 index 0000000000..e74e61c6ac --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/super/super.js @@ -0,0 +1,3 @@ +import SuperSuper from 'x/superSuper'; + +export default class extends SuperSuper {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/superSuper/custom.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/superSuper/custom.html new file mode 100644 index 0000000000..9aab2b6660 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/superSuper/custom.html @@ -0,0 +1,3 @@ + diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/superSuper/superSuper.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/superSuper/superSuper.js new file mode 100644 index 0000000000..1eb81fae81 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-render-in-super-super/modules/x/superSuper/superSuper.js @@ -0,0 +1,8 @@ +import { LightningElement } from 'lwc'; +import Custom from './custom.html'; + +export default class extends LightningElement { + render() { + return Custom; + } +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/error.txt b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/error.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/expected.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/expected.html new file mode 100644 index 0000000000..c434240160 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/expected.html @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/index.js new file mode 100644 index 0000000000..5ab115aa5b --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/index.js @@ -0,0 +1,3 @@ +export const tagName = 'x-sub'; +export { default } from 'x/sub'; +export * from 'x/sub'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/sub/sub.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/sub/sub.js new file mode 100644 index 0000000000..f231ea175d --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/sub/sub.js @@ -0,0 +1,5 @@ +import Super from 'x/super'; + +export default class extends Super { + name = 'world'; +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/super/custom.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/super/custom.html new file mode 100644 index 0000000000..61b7172956 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/super/custom.html @@ -0,0 +1,3 @@ + diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/super/super.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/super/super.js new file mode 100644 index 0000000000..e1c9f67329 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/super/super.js @@ -0,0 +1,8 @@ +import SuperSuper from 'x/superSuper'; +import Custom from './custom.html'; + +export default class extends SuperSuper { + render() { + return Custom; + } +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/superSuper/superSuper.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/superSuper/superSuper.html new file mode 100644 index 0000000000..9aab2b6660 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/superSuper/superSuper.html @@ -0,0 +1,3 @@ + diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/superSuper/superSuper.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/superSuper/superSuper.js new file mode 100644 index 0000000000..ca8dce94e0 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super-render-in-super/modules/x/superSuper/superSuper.js @@ -0,0 +1,3 @@ +import { LightningElement } from 'lwc'; + +export default class extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/error.txt b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/error.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/expected.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/expected.html new file mode 100644 index 0000000000..eb7ff134a0 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/expected.html @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/index.js new file mode 100644 index 0000000000..5ab115aa5b --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/index.js @@ -0,0 +1,3 @@ +export const tagName = 'x-sub'; +export { default } from 'x/sub'; +export * from 'x/sub'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/sub/sub.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/sub/sub.js new file mode 100644 index 0000000000..f231ea175d --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/sub/sub.js @@ -0,0 +1,5 @@ +import Super from 'x/super'; + +export default class extends Super { + name = 'world'; +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/super/super.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/super/super.js new file mode 100644 index 0000000000..e74e61c6ac --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/super/super.js @@ -0,0 +1,3 @@ +import SuperSuper from 'x/superSuper'; + +export default class extends SuperSuper {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/superSuper/superSuper.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/superSuper/superSuper.html new file mode 100644 index 0000000000..dfc881e96c --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/superSuper/superSuper.html @@ -0,0 +1,3 @@ + diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/superSuper/superSuper.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/superSuper/superSuper.js new file mode 100644 index 0000000000..ca8dce94e0 --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/template-in-superclass/template-in-super-super/modules/x/superSuper/superSuper.js @@ -0,0 +1,3 @@ +import { LightningElement } from 'lwc'; + +export default class extends LightningElement {}