From 9c4db99627a3f6bce086e6ff2673b5f8a46a84cf Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 27 May 2025 08:53:18 -0400 Subject: [PATCH] update tests --- .../samples/custom-element-props-identifier-rest/warnings.json | 2 +- .../samples/custom-element-props-identifier/warnings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/svelte/tests/validator/samples/custom-element-props-identifier-rest/warnings.json b/packages/svelte/tests/validator/samples/custom-element-props-identifier-rest/warnings.json index 9f3c59a073..61e11ab108 100644 --- a/packages/svelte/tests/validator/samples/custom-element-props-identifier-rest/warnings.json +++ b/packages/svelte/tests/validator/samples/custom-element-props-identifier-rest/warnings.json @@ -17,7 +17,7 @@ "column": 15, "line": 4 }, - "message": "Using an identifier or a rest element as the declarator for `$props` when compiling to custom elements without declaring `props` in the component options means that Svelte can't know what to expose as properties on the DOM element. Consider explicitly destructuring all the props or adding the `customElement.props` option.", + "message": "Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.", "start": { "column": 7, "line": 4 diff --git a/packages/svelte/tests/validator/samples/custom-element-props-identifier/warnings.json b/packages/svelte/tests/validator/samples/custom-element-props-identifier/warnings.json index 238da1c26d..4c50bbd116 100644 --- a/packages/svelte/tests/validator/samples/custom-element-props-identifier/warnings.json +++ b/packages/svelte/tests/validator/samples/custom-element-props-identifier/warnings.json @@ -17,7 +17,7 @@ "column": 10, "line": 4 }, - "message": "Using an identifier or a rest element as the declarator for `$props` when compiling to custom elements without declaring `props` in the component options means that Svelte can't know what to expose as properties on the DOM element. Consider explicitly destructuring all the props or adding the `customElement.props` option.", + "message": "Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.", "start": { "column": 5, "line": 4