Skip to content

Commit c95f6ae

Browse files
authored
test(ssr): add more tests for superclasses (#4912)
1 parent ca4fa26 commit c95f6ae

File tree

40 files changed

+166
-0
lines changed

40 files changed

+166
-0
lines changed

packages/@lwc/engine-server/src/__tests__/fixtures/render-with-unused-default-template/error.txt

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<x-component>
2+
<template shadowrootmode="open">
3+
Use me!!!
4+
</template>
5+
</x-component>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const tagName = 'x-component';
2+
export { default } from 'x/component';
3+
export * from 'x/component';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
Don't use me!!!
3+
</template>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { LightningElement } from 'lwc'
2+
import tmpl from './tmpl.html'
3+
4+
export default class extends LightningElement {
5+
hello = 'foobar'
6+
7+
render () {
8+
return tmpl
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
Use me!!!
3+
</template>

packages/@lwc/engine-server/src/__tests__/fixtures/superclass/no-template-in-superclass/error.txt

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<x-component>
2+
<template shadowrootmode="open">
3+
<div>
4+
hello world
5+
</div>
6+
</template>
7+
</x-component>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const tagName = 'x-component';
2+
export { default } from 'x/component';
3+
export * from 'x/component';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<div>{hello} {world}</div>
3+
</template>

0 commit comments

Comments
 (0)