diff --git a/packages/@lwc/errors/src/compiler/__tests__/compiler-errors.spec.ts b/packages/@lwc/errors/src/compiler/__tests__/compiler-errors.spec.ts index b354b5bc06..af72fb7213 100644 --- a/packages/@lwc/errors/src/compiler/__tests__/compiler-errors.spec.ts +++ b/packages/@lwc/errors/src/compiler/__tests__/compiler-errors.spec.ts @@ -29,12 +29,26 @@ const ERROR_INFO = { level: DiagnosticLevel.Error, }; +const ERROR_INFO_WITH_URL = { + code: 4, + message: 'Test Error {0} with message {1}', + level: DiagnosticLevel.Error, + url: 'https://example.com/docs/lwc4', +}; + const GENERIC_ERROR = { code: 100, message: 'Unexpected error: {0}', level: DiagnosticLevel.Error, }; +const GENERIC_ERROR_WITH_URL = { + code: 100, + message: 'Unexpected error: {0}', + level: DiagnosticLevel.Error, + url: 'https://example.com/docs/lwc100', +}; + class CustomError extends Error { public lwcCode?: number; public filename?: string; @@ -42,6 +56,7 @@ class CustomError extends Error { public column?: number; public start?: number; public length?: number; + public url?: string; constructor( message: string, @@ -49,7 +64,8 @@ class CustomError extends Error { line?: number, column?: number, start?: number, - length?: number + length?: number, + url?: string ) { super(message); @@ -60,6 +76,7 @@ class CustomError extends Error { this.column = column; this.start = start; this.length = length; + this.url = url; } } @@ -93,6 +110,34 @@ describe('error handling', () => { }) ).toEqual(target); }); + + it('includes url in the compiler diagnostic when errorInfo has url', () => { + const target = { + code: 4, + message: 'LWC4: Test Error arg1 with message 500', + level: DiagnosticLevel.Error, + url: 'https://example.com/docs/lwc4', + filename: 'test.js', + location: DEFAULT_LOCATION, + }; + + expect( + generateCompilerDiagnostic(ERROR_INFO_WITH_URL, { + messageArgs: ['arg1', 500], + origin: { + filename: 'test.js', + location: DEFAULT_LOCATION, + }, + }) + ).toEqual(target); + }); + + it('generates a compiler diagnostic with undefined url when errorInfo has no url', () => { + const diagnostic = generateCompilerDiagnostic(ERROR_INFO, { + messageArgs: ['arg1', 500], + }); + expect(diagnostic.url).toBeUndefined(); + }); }); describe('generate compiler error', () => { @@ -141,6 +186,24 @@ describe('error handling', () => { }); expect(error.location).toEqual(DEFAULT_LOCATION); }); + + it('includes url in the compiler error when errorInfo has url', () => { + const args = ['arg1', 10]; + const error = generateCompilerError(ERROR_INFO_WITH_URL, { + messageArgs: args, + }); + + expect(error.url).toEqual('https://example.com/docs/lwc4'); + }); + + it('generates a compiler error with undefined url when errorInfo has no url', () => { + const args = ['arg1', 10]; + const error = generateCompilerError(ERROR_INFO, { + messageArgs: args, + }); + + expect(error.url).toBeUndefined(); + }); }); describe('normalizeToCompilerError', () => { @@ -222,6 +285,39 @@ describe('error handling', () => { }) ).toEqual(target); }); + + it('preserves url from existing compiler error', () => { + const error = new CompilerError( + 100, + 'LWC100: test err', + 'test.js', + DEFAULT_LOCATION, + DiagnosticLevel.Error, + 'https://example.com/docs/lwc100' + ); + const normalized = normalizeToCompilerError(GENERIC_ERROR, error); + expect(normalized.url).toEqual('https://example.com/docs/lwc100'); + }); + + it('includes url from error object when normalizing non-CompilerError', () => { + const error = new CustomError( + 'test error', + 'test.js', + 3, + 5, + 16, + 10, + 'https://example.com/docs/custom' + ); + const normalized = normalizeToCompilerError(GENERIC_ERROR, error); + expect(normalized.url).toEqual('https://example.com/docs/custom'); + }); + + it('uses fallback url from errorInfo when error has no url', () => { + const error = new CustomError('test error', 'test.js', 3, 5, 16, 10); + const normalized = normalizeToCompilerError(GENERIC_ERROR_WITH_URL, error); + expect(normalized.url).toEqual('https://example.com/docs/lwc100'); + }); }); describe('normalizeToDiagnostic', () => { @@ -301,5 +397,164 @@ describe('error handling', () => { }) ).toEqual(target); }); + + it('preserves url from compiler error when converting to diagnostic', () => { + const error = new CompilerError( + 100, + 'LWC100: test error', + 'test.js', + DEFAULT_LOCATION, + DiagnosticLevel.Error, + 'https://example.com/docs/lwc100' + ); + const diagnostic = normalizeToDiagnostic(GENERIC_ERROR, error); + expect(diagnostic.url).toEqual('https://example.com/docs/lwc100'); + }); + + it('includes url from error object when normalizing non-CompilerError', () => { + const error = new CustomError( + 'test error', + 'test.js', + 2, + 5, + 10, + 5, + 'https://example.com/docs/custom' + ); + const diagnostic = normalizeToDiagnostic(GENERIC_ERROR, error); + expect(diagnostic.url).toEqual('https://example.com/docs/custom'); + }); + + it('uses fallback url from errorInfo when error has no url', () => { + const error = new CustomError('test error', 'test.js', 2, 5, 10, 5); + const diagnostic = normalizeToDiagnostic(GENERIC_ERROR_WITH_URL, error); + expect(diagnostic.url).toEqual('https://example.com/docs/lwc100'); + }); + + it('returns undefined url when neither error nor errorInfo has url', () => { + const error = new CustomError('test error', 'test.js', 2, 5, 10, 5); + const diagnostic = normalizeToDiagnostic(GENERIC_ERROR, error); + expect(diagnostic.url).toBeUndefined(); + }); + }); + + describe('CompilerError', () => { + describe('constructor', () => { + it('creates a CompilerError with all properties including url', () => { + const error = new CompilerError( + 100, + 'test message', + 'test.js', + DEFAULT_LOCATION, + DiagnosticLevel.Error, + 'https://example.com/docs/lwc100' + ); + + expect(error.code).toEqual(100); + expect(error.message).toEqual('test message'); + expect(error.filename).toEqual('test.js'); + expect(error.location).toEqual(DEFAULT_LOCATION); + expect(error.level).toEqual(DiagnosticLevel.Error); + expect(error.url).toEqual('https://example.com/docs/lwc100'); + }); + + it('creates a CompilerError with undefined url when not provided', () => { + const error = new CompilerError(100, 'test message'); + expect(error.url).toBeUndefined(); + }); + }); + + describe('static from', () => { + it('creates a CompilerError from a diagnostic preserving url', () => { + const diagnostic = { + code: 100, + message: 'test message', + level: DiagnosticLevel.Error, + filename: 'test.js', + location: DEFAULT_LOCATION, + url: 'https://example.com/docs/lwc100', + }; + + const error = CompilerError.from(diagnostic); + + expect(error.code).toEqual(100); + expect(error.message).toEqual('test message'); + expect(error.filename).toEqual('test.js'); + expect(error.location).toEqual(DEFAULT_LOCATION); + expect(error.url).toEqual('https://example.com/docs/lwc100'); + }); + + it('creates a CompilerError from a diagnostic without url', () => { + const diagnostic = { + code: 100, + message: 'test message', + level: DiagnosticLevel.Error, + filename: 'test.js', + location: DEFAULT_LOCATION, + }; + + const error = CompilerError.from(diagnostic); + + expect(error.url).toBeUndefined(); + }); + + it('uses origin for filename and location when provided', () => { + const diagnostic = { + code: 100, + message: 'test message', + level: DiagnosticLevel.Error, + filename: 'old.js', + location: { line: 1, column: 1, start: 1, length: 1 }, + url: 'https://example.com/docs/lwc100', + }; + + const error = CompilerError.from(diagnostic, { + filename: 'new.js', + location: DEFAULT_LOCATION, + }); + + expect(error.filename).toEqual('new.js'); + expect(error.location).toEqual(DEFAULT_LOCATION); + expect(error.url).toEqual('https://example.com/docs/lwc100'); + }); + }); + + describe('toDiagnostic', () => { + it('converts CompilerError to diagnostic preserving url', () => { + const error = new CompilerError( + 100, + 'test message', + 'test.js', + DEFAULT_LOCATION, + DiagnosticLevel.Error, + 'https://example.com/docs/lwc100' + ); + + const diagnostic = error.toDiagnostic(); + + expect(diagnostic).toEqual({ + code: 100, + message: 'test message', + filename: 'test.js', + location: DEFAULT_LOCATION, + level: DiagnosticLevel.Error, + url: 'https://example.com/docs/lwc100', + }); + }); + + it('converts CompilerError to diagnostic with undefined url', () => { + const error = new CompilerError( + 100, + 'test message', + 'test.js', + DEFAULT_LOCATION, + DiagnosticLevel.Error + ); + + const diagnostic = error.toDiagnostic(); + + expect(diagnostic.url).toBeUndefined(); + }); + }); }); }); diff --git a/packages/@lwc/errors/src/compiler/errors.ts b/packages/@lwc/errors/src/compiler/errors.ts index b03fd6f368..b676f98c80 100644 --- a/packages/@lwc/errors/src/compiler/errors.ts +++ b/packages/@lwc/errors/src/compiler/errors.ts @@ -56,6 +56,7 @@ export function generateCompilerDiagnostic( code: errorInfo.code, message, level: getEffectiveErrorLevel(errorInfo, useStrictErrorOverride), + url: errorInfo.url, }; if (config && config.origin) { @@ -81,7 +82,14 @@ export function generateCompilerError( ): CompilerError { const message = generateErrorMessage(errorInfo, config && config.messageArgs); const level = getEffectiveErrorLevel(errorInfo, useStrictErrorOverride); - const error = new CompilerError(errorInfo.code, message, undefined, undefined, level); + const error = new CompilerError( + errorInfo.code, + message, + undefined, + undefined, + level, + errorInfo.url + ); if (config) { error.filename = getFilename(config.origin); @@ -126,7 +134,7 @@ export function normalizeToCompilerError( } return error; } - const { code, message, filename, location, level } = convertErrorToDiagnostic( + const { code, message, filename, location, level, url } = convertErrorToDiagnostic( error, fallbackErrorInfo, origin, @@ -138,7 +146,8 @@ export function normalizeToCompilerError( `${error.name}: ${message}`, filename, location, - level + level, + url ); compilerError.stack = error.stack; return compilerError; @@ -199,9 +208,10 @@ function convertErrorToDiagnostic( 'level' in error ? error : fallbackErrorInfo, useStrictErrorOverride ); + const url = error.url ?? fallbackErrorInfo.url; const filename = getFilename(origin, error); const location = getLocation(origin, error); // TODO [#1289]: Preserve stack information - return { code, message, level, filename, location }; + return { code, message, level, filename, location, url }; } diff --git a/packages/@lwc/errors/src/compiler/utils.ts b/packages/@lwc/errors/src/compiler/utils.ts index dcea8eddb0..17a1e5ff48 100644 --- a/packages/@lwc/errors/src/compiler/utils.ts +++ b/packages/@lwc/errors/src/compiler/utils.ts @@ -18,6 +18,7 @@ export interface CompilerDiagnostic { filename?: string; location?: Location; level: DiagnosticLevel; + url?: string; } export class CompilerError extends Error implements CompilerDiagnostic { @@ -25,13 +26,15 @@ export class CompilerError extends Error implements CompilerDiagnostic { public filename?: string; public location?: Location; public level: DiagnosticLevel; + public url?: string; constructor( code: number, message: string, filename?: string, location?: Location, - level = DiagnosticLevel.Error + level = DiagnosticLevel.Error, + url?: string ) { super(message); @@ -39,15 +42,16 @@ export class CompilerError extends Error implements CompilerDiagnostic { this.filename = filename; this.location = location; this.level = level; + this.url = url; } static from(diagnostic: CompilerDiagnostic, origin?: CompilerDiagnosticOrigin) { - const { code, message } = diagnostic; + const { code, message, url } = diagnostic; const filename = getFilename(origin, diagnostic); const location = getLocation(origin, diagnostic); - const compilerError = new CompilerError(code, message, filename, location); + const compilerError = new CompilerError(code, message, filename, location, undefined, url); // The stack here is misleading and doesn't point to the cause of the original error message // TODO [W-5712064]: Enhance diagnostics with useful stack trace and source code @@ -62,6 +66,7 @@ export class CompilerError extends Error implements CompilerDiagnostic { level: this.level, filename: this.filename, location: this.location, + url: this.url, }; } } diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/boolean-attributes-invalid/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/boolean-attributes-invalid/metadata.json index d5552a5467..4982e6f305 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/boolean-attributes-invalid/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/boolean-attributes-invalid/metadata.json @@ -9,7 +9,8 @@ "column": 8, "start": 18, "length": 13 - } + }, + "url": "" }, { "code": 1037, @@ -20,7 +21,8 @@ "column": 9, "start": 47, "length": 15 - } + }, + "url": "" }, { "code": 1037, @@ -31,7 +33,8 @@ "column": 14, "start": 82, "length": 11 - } + }, + "url": "" }, { "code": 1037, @@ -42,7 +45,8 @@ "column": 11, "start": 115, "length": 17 - } + }, + "url": "" }, { "code": 1037, @@ -53,7 +57,8 @@ "column": 12, "start": 152, "length": 15 - } + }, + "url": "" }, { "code": 1037, @@ -64,7 +69,8 @@ "column": 12, "start": 188, "length": 11 - } + }, + "url": "" }, { "code": 1037, @@ -75,7 +81,8 @@ "column": 12, "start": 220, "length": 12 - } + }, + "url": "" }, { "code": 1037, @@ -86,7 +93,8 @@ "column": 13, "start": 265, "length": 14 - } + }, + "url": "" }, { "code": 1037, @@ -97,7 +105,8 @@ "column": 13, "start": 330, "length": 15 - } + }, + "url": "" }, { "code": 1037, @@ -108,7 +117,8 @@ "column": 13, "start": 396, "length": 15 - } + }, + "url": "" }, { "code": 1037, @@ -119,7 +129,8 @@ "column": 13, "start": 462, "length": 15 - } + }, + "url": "" }, { "code": 1037, @@ -130,7 +141,8 @@ "column": 13, "start": 517, "length": 16 - } + }, + "url": "" }, { "code": 1037, @@ -141,7 +153,8 @@ "column": 13, "start": 556, "length": 15 - } + }, + "url": "" }, { "code": 1037, @@ -152,7 +165,8 @@ "column": 13, "start": 594, "length": 21 - } + }, + "url": "" }, { "code": 1037, @@ -163,7 +177,8 @@ "column": 17, "start": 655, "length": 15 - } + }, + "url": "" }, { "code": 1037, @@ -174,7 +189,8 @@ "column": 13, "start": 718, "length": 13 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/duplicate-props/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/duplicate-props/metadata.json index 6853c7ba36..6a43732cc7 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/duplicate-props/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/duplicate-props/metadata.json @@ -4,6 +4,7 @@ "code": 1147, "message": "LWC1147: Found multiple HTML attributes mapping to the same JavaScript property. \"accesskey\" and \"access-key\" both map to \"accessKey\".", "level": 2, + "url": "", "location": { "line": 4, "column": 9, @@ -15,6 +16,7 @@ "code": 1147, "message": "LWC1147: Found multiple HTML attributes mapping to the same JavaScript property. \"access-key\" and \"accesskey\" both map to \"accessKey\".", "level": 2, + "url": "", "location": { "line": 8, "column": 9, diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-ambiguous-attribute/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-ambiguous-attribute/metadata.json index 64734b3988..3eff323045 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-ambiguous-attribute/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-ambiguous-attribute/metadata.json @@ -9,7 +9,8 @@ "column": 12, "start": 22, "length": 17 - } + }, + "url": "" }, { "code": 1035, @@ -20,7 +21,8 @@ "column": 12, "start": 54, "length": 22 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-boolean/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-boolean/metadata.json index b5f8b12169..ee45ceec9b 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-boolean/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-boolean/metadata.json @@ -9,7 +9,8 @@ "column": 8, "start": 18, "length": 11 - } + }, + "url": "" }, { "code": 1036, @@ -20,7 +21,8 @@ "column": 8, "start": 43, "length": 12 - } + }, + "url": "" }, { "code": 1037, @@ -31,7 +33,8 @@ "column": 8, "start": 69, "length": 13 - } + }, + "url": "" }, { "code": 1036, @@ -42,7 +45,8 @@ "column": 8, "start": 96, "length": 14 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-camelcase/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-camelcase/metadata.json index 3718d80a5a..ee912c469e 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-camelcase/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-camelcase/metadata.json @@ -9,7 +9,8 @@ "column": 16, "start": 40, "length": 13 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-is/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-is/metadata.json index 5bb5208483..e5b3f74a83 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-is/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/error-is/metadata.json @@ -9,7 +9,8 @@ "column": 9, "start": 33, "length": 29 - } + }, + "url": "" }, { "code": 1063, @@ -20,7 +21,8 @@ "column": 9, "start": 71, "length": 25 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/html-tag-invalid/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/html-tag-invalid/metadata.json index d888294c0b..a7068f4793 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/html-tag-invalid/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/html-tag-invalid/metadata.json @@ -4,6 +4,7 @@ "code": 1057, "message": "LWC1057: unknown-attr is not valid attribute for textarea. For more information refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea", "level": 2, + "url": "", "location": { "line": 3, "column": 47, diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-error-underscore-attribute/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-error-underscore-attribute/metadata.json index 99a1148855..d09272e1df 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-error-underscore-attribute/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-error-underscore-attribute/metadata.json @@ -9,7 +9,8 @@ "column": 15, "start": 58, "length": 15 - } + }, + "url": "" }, { "code": 1124, @@ -20,7 +21,8 @@ "column": 15, "start": 144, "length": 13 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-hyphen-attribute/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-hyphen-attribute/metadata.json index 47ac630e6b..742bdb1d9a 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-hyphen-attribute/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-hyphen-attribute/metadata.json @@ -9,7 +9,8 @@ "column": 15, "start": 295, "length": 13 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-non-alphanumeric/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-non-alphanumeric/metadata.json index 3829915153..8dd1af3bed 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-non-alphanumeric/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/invalid-non-alphanumeric/metadata.json @@ -9,7 +9,8 @@ "column": 15, "start": 233, "length": 11 - } + }, + "url": "" }, { "code": 1125, @@ -20,7 +21,8 @@ "column": 15, "start": 310, "length": 11 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/scoped-id/expression/not-scoped/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/scoped-id/expression/not-scoped/metadata.json index d56d3749df..9fd7d0fa62 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/scoped-id/expression/not-scoped/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/scoped-id/expression/not-scoped/metadata.json @@ -4,6 +4,7 @@ "code": 1057, "message": "LWC1057: aria-described-by is not valid attribute for div. For more information refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div", "level": 2, + "url": "", "location": { "line": 5, "column": 9, @@ -15,6 +16,7 @@ "code": 1057, "message": "LWC1057: aria-active-descendant is not valid attribute for div. For more information refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div", "level": 2, + "url": "", "location": { "line": 6, "column": 9, @@ -26,6 +28,7 @@ "code": 1057, "message": "LWC1057: aria-error-message is not valid attribute for div. For more information refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div", "level": 2, + "url": "", "location": { "line": 7, "column": 9, @@ -37,6 +40,7 @@ "code": 1057, "message": "LWC1057: aria-flow-to is not valid attribute for div. For more information refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div", "level": 2, + "url": "", "location": { "line": 8, "column": 9, @@ -48,6 +52,7 @@ "code": 1057, "message": "LWC1057: aria-labelled-by is not valid attribute for div. For more information refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div", "level": 2, + "url": "", "location": { "line": 9, "column": 9, diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/tabindex/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/tabindex/metadata.json index a1884e59a0..54cc52e1f0 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/tabindex/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/tabindex/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 24 - } + }, + "url": "" }, { "code": 1061, @@ -20,7 +21,8 @@ "column": 5, "start": 44, "length": 21 - } + }, + "url": "" }, { "code": 1061, @@ -31,7 +33,8 @@ "column": 5, "start": 70, "length": 30 - } + }, + "url": "" }, { "code": 1061, @@ -42,7 +45,8 @@ "column": 5, "start": 105, "length": 23 - } + }, + "url": "" }, { "code": 1061, @@ -53,7 +57,8 @@ "column": 5, "start": 231, "length": 32 - } + }, + "url": "" }, { "code": 1061, @@ -64,7 +69,8 @@ "column": 5, "start": 268, "length": 29 - } + }, + "url": "" }, { "code": 1061, @@ -75,7 +81,8 @@ "column": 5, "start": 302, "length": 38 - } + }, + "url": "" }, { "code": 1061, @@ -86,7 +93,8 @@ "column": 5, "start": 345, "length": 31 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/unknown-html-tag-known-attribute/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/unknown-html-tag-known-attribute/metadata.json index ee96162369..55fbb8d045 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/unknown-html-tag-known-attribute/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/attributes/unknown-html-tag-known-attribute/metadata.json @@ -4,6 +4,7 @@ "code": 1123, "message": "LWC1123: Unknown html tag ''. For more information refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Element and https://developer.mozilla.org/en-US/docs/Web/SVG/Element", "level": 2, + "url": "", "location": { "line": 2, "column": 5, diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-invalid-type/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-invalid-type/metadata.json index 8ae9a34e18..3028a25976 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-invalid-type/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-invalid-type/metadata.json @@ -9,7 +9,8 @@ "column": 1, "start": 0, "length": 118 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-not-on-root-multiple-directives/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-not-on-root-multiple-directives/metadata.json index 251a087e67..244d4a26c6 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-not-on-root-multiple-directives/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-not-on-root-multiple-directives/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 46 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-not-on-root/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-not-on-root/metadata.json index 6bd7cdb3b4..b1a9578f7d 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-not-on-root/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/comments/error-not-on-root/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 33 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-config/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-config/metadata.json index 3aa9a6aedb..70bf9d972a 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-config/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-config/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 45 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-native-element/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-native-element/metadata.json index 9dd4381d05..b5eb5291d3 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-native-element/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-native-element/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 41 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-type/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-type/metadata.json index ca1bc2dc7d..dc71a206ee 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-type/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/invalid-type/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 45 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/only-child/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/only-child/metadata.json index 8f5fb951aa..fc6b3a944f 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/only-child/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/only-child/metadata.json @@ -4,6 +4,7 @@ "code": 1187, "message": "LWC1187: The lwc:dynamic directive is deprecated and will be removed in a future release. Please use lwc:is instead.", "level": 2, + "url": "", "location": { "line": 2, "column": 5, diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/sibbling/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/sibbling/metadata.json index 9075f120c2..8c3b364166 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/sibbling/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-dynamic/sibbling/metadata.json @@ -4,6 +4,7 @@ "code": 1187, "message": "LWC1187: The lwc:dynamic directive is deprecated and will be removed in a future release. Please use lwc:is instead.", "level": 2, + "url": "", "location": { "line": 3, "column": 5, diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/built-ins/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/built-ins/metadata.json index e5354674c0..6fddbbd96b 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/built-ins/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/built-ins/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 27 - } + }, + "url": "" }, { "code": 1180, @@ -20,7 +21,8 @@ "column": 5, "start": 47, "length": 30 - } + }, + "url": "" }, { "code": 1180, @@ -31,7 +33,8 @@ "column": 5, "start": 82, "length": 20 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/dynamic-components/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/dynamic-components/metadata.json index c22cd055bd..3c98268ead 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/dynamic-components/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/dynamic-components/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 58 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/non-boolean-usage/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/non-boolean-usage/metadata.json index e5a8c727fe..e80724cf24 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/non-boolean-usage/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/non-boolean-usage/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 39 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/root-template/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/root-template/metadata.json index c4dd610702..f90c15dd38 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/root-template/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/root-template/metadata.json @@ -9,7 +9,8 @@ "column": 1, "start": 0, "length": 34 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/template/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/template/metadata.json index 1599bf512c..e8e1027f06 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/template/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-external/template/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 79 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-for-each-only/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-for-each-only/metadata.json index a52cdbd11a..e895ca2156 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-for-each-only/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-for-each-only/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 38 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-for-item-only/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-for-item-only/metadata.json index d77bfa541a..ef7323bbaf 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-for-item-only/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-for-item-only/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 37 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-identifier/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-identifier/metadata.json index c7d8cc4298..d7df5db268 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-identifier/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-identifier/metadata.json @@ -9,7 +9,8 @@ "column": 26, "start": 36, "length": 18 - } + }, + "url": "" }, { "code": 1059, @@ -20,7 +21,8 @@ "column": 43, "start": 103, "length": 20 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-type/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-type/metadata.json index 161e58ddcb..81306daf11 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-type/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-invalid-type/metadata.json @@ -9,7 +9,8 @@ "column": 27, "start": 37, "length": 15 - } + }, + "url": "" }, { "code": 1045, @@ -20,7 +21,8 @@ "column": 10, "start": 87, "length": 16 - } + }, + "url": "" }, { "code": 1046, @@ -31,7 +33,8 @@ "column": 43, "start": 187, "length": 17 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-missing-key/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-missing-key/metadata.json index 20153e18e2..535973dfc4 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-missing-key/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-for-each/error-missing-key/metadata.json @@ -9,7 +9,8 @@ "column": 9, "start": 67, "length": 14 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/error-invalid-expression/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/error-invalid-expression/metadata.json index 74b73c9e04..e3f8fd5a71 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/error-invalid-expression/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/error-invalid-expression/metadata.json @@ -9,7 +9,8 @@ "column": 19, "start": 43, "length": 16 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/error-invalid-modifier/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/error-invalid-modifier/metadata.json index ea5af30704..a0a5820460 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/error-invalid-modifier/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/error-invalid-modifier/metadata.json @@ -9,7 +9,8 @@ "column": 15, "start": 25, "length": 12 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/inline-both-custom-element/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/inline-both-custom-element/metadata.json index 9e168a0b38..cda10a94ce 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/inline-both-custom-element/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/inline-both-custom-element/metadata.json @@ -4,6 +4,7 @@ "code": 1182, "message": "LWC1182: Multiple if: directives found on 'c-hello'. Only one if: directive is allowed; the rest are ignored.", "level": 2, + "url": "", "location": { "line": 2, "column": 5, diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/inline-both-standard-element/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/inline-both-standard-element/metadata.json index 0f964f1e7e..6e4602f9c1 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/inline-both-standard-element/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/inline-both-standard-element/metadata.json @@ -4,6 +4,7 @@ "code": 1182, "message": "LWC1182: Multiple if: directives found on 'h1'. Only one if: directive is allowed; the rest are ignored.", "level": 2, + "url": "", "location": { "line": 2, "column": 5, diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/template-both/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/template-both/metadata.json index 0c954235a1..d8a63e4557 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/template-both/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-if/template-both/metadata.json @@ -4,6 +4,7 @@ "code": 1182, "message": "LWC1182: Multiple if: directives found on 'template'. Only one if: directive is allowed; the rest are ignored.", "level": 2, + "url": "", "location": { "line": 2, "column": 5, diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-inner-html/invalid/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-inner-html/invalid/metadata.json index 0bcbf61c10..575c3082c2 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-inner-html/invalid/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-inner-html/invalid/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 69, "length": 48 - } + }, + "url": "" }, { "code": 1143, @@ -20,7 +21,8 @@ "column": 5, "start": 343, "length": 26 - } + }, + "url": "" }, { "code": 1141, @@ -31,7 +33,8 @@ "column": 5, "start": 416, "length": 38 - } + }, + "url": "" }, { "code": 1140, @@ -42,7 +45,8 @@ "column": 5, "start": 510, "length": 40 - } + }, + "url": "" }, { "code": 1141, @@ -53,12 +57,14 @@ "column": 5, "start": 601, "length": 46 - } + }, + "url": "" }, { "code": 1187, "message": "LWC1187: The lwc:dynamic directive is deprecated and will be removed in a future release. Please use lwc:is instead.", "level": 2, + "url": "", "location": { "line": 21, "column": 5, @@ -75,7 +81,8 @@ "column": 5, "start": 695, "length": 61 - } + }, + "url": "" }, { "code": 1140, @@ -86,7 +93,8 @@ "column": 5, "start": 818, "length": 70 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-inner-html/usage-with-preserve-comments/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-inner-html/usage-with-preserve-comments/metadata.json index b1a5aa7bb1..315804c955 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-inner-html/usage-with-preserve-comments/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-inner-html/usage-with-preserve-comments/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 91, "length": 57 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-for-each-mix/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-for-each-mix/metadata.json index f065635a92..19497f7ec7 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-for-each-mix/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-for-each-mix/metadata.json @@ -9,7 +9,8 @@ "column": 5, "start": 15, "length": 129 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-identifier/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-identifier/metadata.json index efaccdbeba..7182c4c67e 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-identifier/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-identifier/metadata.json @@ -9,7 +9,8 @@ "column": 9, "start": 19, "length": 28 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-invalid-expression/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-invalid-expression/metadata.json index 4283ffeaa2..7decc52210 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-invalid-expression/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-iterator/error-invalid-expression/metadata.json @@ -9,7 +9,8 @@ "column": 9, "start": 19, "length": 21 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-expression/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-expression/metadata.json index 50efddeb10..5c418f2908 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-expression/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-expression/metadata.json @@ -9,7 +9,8 @@ "column": 9, "start": 19, "length": 11 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-for-each-index-as-key/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-for-each-index-as-key/metadata.json index 2c066e8e81..b8b7d22aef 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-for-each-index-as-key/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-for-each-index-as-key/metadata.json @@ -9,7 +9,8 @@ "column": 18, "start": 112, "length": 11 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-inline-for-each-index-as-key/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-inline-for-each-index-as-key/metadata.json index 9ac29e6657..03281d48d3 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-inline-for-each-index-as-key/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-inline-for-each-index-as-key/metadata.json @@ -9,7 +9,8 @@ "column": 14, "start": 38, "length": 11 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-inline-iterator-index-as-key/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-inline-iterator-index-as-key/metadata.json index 57596d9e4d..3744140d66 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-inline-iterator-index-as-key/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-inline-iterator-index-as-key/metadata.json @@ -9,7 +9,8 @@ "column": 31, "start": 55, "length": 13 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-iterator-index-as-key/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-iterator-index-as-key/metadata.json index 05df72d5d1..efe592fa1f 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-iterator-index-as-key/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/error-iterator-index-as-key/metadata.json @@ -9,7 +9,8 @@ "column": 16, "start": 78, "length": 13 - } + }, + "url": "" } ] } \ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/outside-iterator/metadata.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/outside-iterator/metadata.json index 41bb1608ab..d29c1e603d 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/outside-iterator/metadata.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/directive-key/outside-iterator/metadata.json @@ -4,6 +4,7 @@ "code": 1149, "message": "LWC1149: Invalid key attribute on element
. The key attribute should be applied to an element with for:each or iterator:*, or to a direct child of a