chore: bump version to 9.0.4-alpha.0 #5229
Annotations
3 errors
|
run-unit-tests
Process completed with exit code 1.
|
|
[lwc-ssr-compiler] src/__tests__/compilation.spec.ts > template compilation > template include LWC version comment:
packages/@lwc/ssr-compiler/src/__tests__/compilation.spec.ts#L146
AssertionError: expected 'const stylesheetScopeToken = "lwc-ckq…' to match /\/\*LWC co…/\*LWC compiler v([\d.]+)\*\
- Expected:
/\/\*LWC compiler v([\d.]+)\*\/\s*}/
+ Received:
"const stylesheetScopeToken = \"lwc-ckqc0oell2\";
const hasScopedStylesheets = defaultScopedStylesheets !== undefined && defaultScopedStylesheets.length > 0;
import {renderStylesheets, hasScopedStaticStylesheets} from \"@lwc/ssr-runtime\";
import defaultStylesheets from \"./component.css\";
import defaultScopedStylesheets from \"./component.scoped.css?scoped=true\";
export default function __lwcTmpl(shadowSlottedContent, lightSlottedContent, scopedSlottedContent, Cmp, instance, renderContext) {
let __lwcYield = '';
let textContentBuffer = '';
let didBufferTextContent = false;
const slotAttributeValue = null;
const contextfulParent = instance;
const isLightDom = Cmp.renderMode === 'light';
if (!isLightDom) {
__lwcYield += `<template shadowrootmode=\"open\"${Cmp.delegatesFocus ? ' shadowrootdelegatesfocus' : ''}>`;
}
const {stylesheets: staticStylesheets} = Cmp;
if (defaultStylesheets || defaultScopedStylesheets || staticStylesheets) {
__lwcYield += renderStylesheets(renderContext, defaultStylesheets, defaultScopedStylesheets, staticStylesheets, stylesheetScopeToken, Cmp, hasScopedStylesheets);
}
if (!isLightDom) {
__lwcYield += '</template>';
if (shadowSlottedContent) {
__lwcYield += shadowSlottedContent(contextfulParent);
}
}
return __lwcYield;
/*LWC compiler v9.0.4-alpha.0*/
}
__lwcTmpl.hasScopedStylesheets = hasScopedStylesheets;
__lwcTmpl.stylesheetScopeToken = stylesheetScopeToken;
"
❯ src/__tests__/compilation.spec.ts:146:22
|
|
[lwc-ssr-compiler] src/__tests__/compilation.spec.ts > component compilation > components include LWC version comment:
packages/@lwc/ssr-compiler/src/__tests__/compilation.spec.ts#L53
AssertionError: expected 'import {fallbackTmplNoYield as __fall…' to match /\/\*LWC co…/\*LWC compiler v([\d.]+)\*\
- Expected:
/\/\*LWC compiler v([\d.]+)\*\/\s*}/
+ Received:
"import {fallbackTmplNoYield as __fallbackTmpl, hasScopedStaticStylesheets, mutationTracker as __mutationTracker, renderAttrsNoYield as __renderAttrs, SYMBOL__GENERATE_MARKUP as __SYMBOL__GENERATE_MARKUP, SYMBOL__SET_INTERNALS as __SYMBOL__SET_INTERNALS, establishContextfulRelationship as __establishContextfulRelationship} from \"@lwc/ssr-runtime\";
import {SYMBOL__DEFAULT_TEMPLATE as __SYMBOL__DEFAULT_TEMPLATE} from \"@lwc/ssr-runtime\";
import __lwcTmpl from \"./component.html\";
import {LightningElement} from \"@lwc/ssr-runtime\";
export default class DefaultComponentName extends LightningElement { /*LWC compiler v9.0.4-alpha.0*/
}
const __lwcSuperPublicProperties__ = Array.from(Object.getPrototypeOf(DefaultComponentName)?.__lwcPublicProperties__?.values?.() ?? []);
const __lwcPublicProperties__ = new Set([].concat(__lwcSuperPublicProperties__));
Object.defineProperty(DefaultComponentName, __SYMBOL__GENERATE_MARKUP, {
configurable: false,
enumerable: false,
writable: false,
value: function __lwcGenerateMarkup(tagName, props, attrs, parent, scopeToken, contextfulParent, renderContext, shadowSlottedContent, lightSlottedContent, scopedSlottedContent) {
let __lwcYield = '';
tagName = tagName ?? \"-\";
attrs = attrs ?? Object.create(null);
props = props ?? Object.create(null);
const instance = new DefaultComponentName({
tagName: tagName.toUpperCase()
});
__establishContextfulRelationship(contextfulParent, instance);
instance[__SYMBOL__SET_INTERNALS](props, attrs, __lwcPublicProperties__);
instance.isConnected = true;
if (instance.connectedCallback) {
__mutationTracker.enable(instance);
instance.connectedCallback();
__mutationTracker.disable(instance);
}
const tmplFn = (instance.render?.() ?? DefaultComponentName[__SYMBOL__DEFAULT_TEMPLATE]) ?? __fallbackTmpl;
__lwcYield += `<${tagName}`;
const hostHasScopedStylesheets = tmplFn.hasScopedStylesheets || hasScopedStaticStylesheets(DefaultComponentName);
const hostScopeToken = hostHasScopedStylesheets ? tmplFn.stylesheetScopeToken + \"-host\" : undefined;
__lwcYield += __renderAttrs(instance, attrs, hostScopeToken, scopeToken);
__lwcYield += '>';
__lwcYield += tmplFn(shadowSlottedContent, lightSlottedContent, scopedSlottedContent, DefaultComponentName, instance, renderContext);
__lwcYield += `</${tagName}>`;
return __lwcYield;
}
});
Object.defineProperty(DefaultComponentName, '__lwcPublicProperties__', {
configurable: false,
enumerable: false,
writable: false,
value: __lwcPublicProperties__
});
if (__lwcTmpl) {
Object.defineProperty(DefaultComponentName, __SYMBOL__DEFAULT_TEMPLATE, {
configurable: false,
enumerable: false,
writable: false,
value: __lwcTmpl
});
}
"
❯ src/__tests__/compilation.spec.ts:53:22
|