From fa37b859fa5f17c065666f0931597821a21d4c74 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 19 Dec 2024 11:55:07 -0800 Subject: [PATCH] test: another test! --- .../render-in-superclass/template-in-subclass/error.txt | 0 .../template-in-subclass/expected.html | 7 +++++++ .../render-in-superclass/template-in-subclass/index.js | 3 +++ .../modules/x/component/component.html | 3 +++ .../template-in-subclass/modules/x/component/component.js | 5 +++++ .../modules/x/fancyElement/fancyElement.js | 8 ++++++++ .../template-in-subclass/modules/x/fancyElement/tmpl.html | 3 +++ 7 files changed, 29 insertions(+) create mode 100644 packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/error.txt create mode 100644 packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/expected.html create mode 100644 packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/index.js create mode 100644 packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/component/component.html create mode 100644 packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/component/component.js create mode 100644 packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/fancyElement/fancyElement.js create mode 100644 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/render-in-superclass/template-in-subclass/error.txt b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/error.txt new file mode 100644 index 0000000000..e69de29bb2 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/render-in-superclass/template-in-subclass/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/index.js new file mode 100644 index 0000000000..cd34090d2c --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/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/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/render-in-superclass/template-in-subclass/modules/x/fancyElement/tmpl.html b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/fancyElement/tmpl.html new file mode 100644 index 0000000000..4668ade7da --- /dev/null +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/modules/x/fancyElement/tmpl.html @@ -0,0 +1,3 @@ +