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('