From a88ebebda1ae1d957f338c2f848c8b96f0503756 Mon Sep 17 00:00:00 2001 From: Matheus Cardoso Date: Wed, 22 Jan 2025 15:22:46 -0300 Subject: [PATCH] chore(@lwc/compiler): fix type error in transform-html.spec.ts (#5158) --- .../src/transformers/__tests__/transform-html.spec.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/@lwc/compiler/src/transformers/__tests__/transform-html.spec.ts b/packages/@lwc/compiler/src/transformers/__tests__/transform-html.spec.ts index ab59a4d5b3..0c85880de9 100644 --- a/packages/@lwc/compiler/src/transformers/__tests__/transform-html.spec.ts +++ b/packages/@lwc/compiler/src/transformers/__tests__/transform-html.spec.ts @@ -9,10 +9,10 @@ import { APIVersion, noop } from '@lwc/shared'; import { transformSync } from '../transformer'; import type { TransformOptions } from '../../options'; -const TRANSFORMATION_OPTIONS: TransformOptions = { +const TRANSFORMATION_OPTIONS = { namespace: 'x', name: 'foo', -}; +} satisfies TransformOptions; describe('transformSync', () => { it('should throw when processing an invalid HTML file', () => { @@ -74,7 +74,10 @@ describe('transformSync', () => { ]; it.for(configs)('$name', ({ config, expected }) => { const template = ``; - const { code, warnings } = transformSync(template, 'foo.html', config); + const { code, warnings } = transformSync(template, 'foo.html', { + ...TRANSFORMATION_OPTIONS, + ...config, + }); expect(warnings!.length).toBe(0); if (expected) { expect(code).toContain('