From 751da5f39797641c3510881eb3094a3606ca2d44 Mon Sep 17 00:00:00 2001 From: Matheus Cardoso Date: Fri, 29 Nov 2024 15:35:17 -0300 Subject: [PATCH 1/3] fix(template-compiler): dynamic components with scoped slots --- .../dynamic-components/slots/scoped-slots/config.json | 6 ------ .../slots/scoped-slots/error-ssr.txt | 1 - .../dynamic-components/slots/scoped-slots/error.txt | 1 - .../slots/scoped-slots/expected-ssr.html | 0 .../slots/scoped-slots/expected.html | 10 ++++++++++ .../src/__tests__/utils/expected-failures.ts | 1 + packages/@lwc/template-compiler/src/parser/index.ts | 7 ++++++- 7 files changed, 17 insertions(+), 9 deletions(-) delete mode 100644 packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/config.json delete mode 100644 packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/error-ssr.txt delete mode 100644 packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/expected-ssr.html diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/config.json b/packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/config.json deleted file mode 100644 index 59676736cb..0000000000 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "ssrFiles": { - "error": "error-ssr.txt", - "expected": "expected-ssr.html" - } -} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/error-ssr.txt b/packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/error-ssr.txt deleted file mode 100644 index 050b0885d3..0000000000 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/error-ssr.txt +++ /dev/null @@ -1 +0,0 @@ -Template compilation failure; see warnings in the console. diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/error.txt b/packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/error.txt index dd1d09f796..e69de29bb2 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/error.txt +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/dynamic-components/slots/scoped-slots/error.txt @@ -1 +0,0 @@ -LWC1178: