Skip to content

experiment with TOverrideArgs #63

experiment with TOverrideArgs

experiment with TOverrideArgs #63

Triggered via push June 12, 2024 06:52
Status Failure
Total duration 31s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors
src/runtime/emit-code.test.ts > Emit Code > should replace individually referenced args: src/runtime/emit-code.ts#L103
TypeError: Cannot read properties of undefined (reading 'Symbol(svelte.snippet)') ❯ valueToString src/runtime/emit-code.ts:103:7 ❯ src/runtime/emit-code.ts:85:14 ❯ Module.generateCodeToEmit src/runtime/emit-code.ts:82:6 ❯ src/runtime/emit-code.test.ts:95:7
src/parser/analyse/story/attributes/identifiers.test.ts > getStoryIdentifiers > throws when '<Story />' doesn't provide an 'exportName' or 'name' attribute prop: src/parser/analyse/story/attributes/identifiers.test.ts#L79
Error: Snapshot `getStoryIdentifiers > throws when '<Story />' doesn't provide an 'exportName' or 'name' attribute prop 1` mismatched - Expected + Received - [SB_SVELTE_CSF_PARSER_ANALYSE_STORY_0004 (NoStoryIdentifierError): Missing 'name' or 'exportName' attribute (prop) in a '<Story />' definition in the stories file: 'file:///Users/xeho91/Nextcloud/Projects/oss/addon-svelte-csf/invalid.stories.svelte'. + [SB_SVELTE_CSF_PARSER_ANALYSE_STORY_0004 (NoStoryIdentifierError): Missing 'name' or 'exportName' attribute (prop) in a '<Story />' definition in the stories file: 'file:///home/runner/work/addon-svelte-csf/addon-svelte-csf/invalid.stories.svelte'. All stories must either have a 'name' or an 'exportName' prop.] ❯ src/parser/analyse/story/attributes/identifiers.test.ts:79:7
src/parser/analyse/story/attributes/identifiers.test.ts > getStoryIdentifiers > throws when 'exportName' is not a valid JavaScript variable name: src/parser/analyse/story/attributes/identifiers.test.ts#L181
Error: Snapshot `getStoryIdentifiers > throws when 'exportName' is not a valid JavaScript variable name 1` mismatched - Expected + Received - [SB_SVELTE_CSF_PARSER_ANALYSE_STORY_0005 (InvalidStoryExportNameError): Invalid attribute 'exportName' value 'default' found in '<Story />' component inside stories file: file:///Users/xeho91/Nextcloud/Projects/oss/addon-svelte-csf/invalid.stories.svelte + [SB_SVELTE_CSF_PARSER_ANALYSE_STORY_0005 (InvalidStoryExportNameError): Invalid attribute 'exportName' value 'default' found in '<Story />' component inside stories file: file:///home/runner/work/addon-svelte-csf/addon-svelte-csf/invalid.stories.svelte 'exportName' alue must be a valid JavaScript variable name. It must start with a letter, $ or _, followed by letters, numbers, $ or _. Reserved words like 'default' are also not allowed (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#reserved_words)] ❯ src/parser/analyse/story/attributes/identifiers.test.ts:181:7
src/parser/analyse/story/attributes/identifiers.test.ts > getStoriesIdentifiers > throws on identical 'exportName' attributes: src/parser/analyse/story/attributes/identifiers.test.ts#L250
Error: Snapshot `getStoriesIdentifiers > throws on identical 'exportName' attributes 1` mismatched - Expected + Received @@ -1,6 +1,6 @@ - [SB_SVELTE_CSF_PARSER_ANALYSE_STORY_0006 (DuplicateStoryIdentifiersError): Duplicate exportNames found between two '<Story />' definitions in stories file: file:///Users/xeho91/Nextcloud/Projects/oss/addon-svelte-csf/duplicate-identifiers.stories.svelte + [SB_SVELTE_CSF_PARSER_ANALYSE_STORY_0006 (DuplicateStoryIdentifiersError): Duplicate exportNames found between two '<Story />' definitions in stories file: file:///home/runner/work/addon-svelte-csf/addon-svelte-csf/duplicate-identifiers.stories.svelte First instance: <Story name={undefined} exportName="SomeExportName" ... /> Second instance: <Story name={undefined} exportName="SomeExportName" ... /> This can happen when 'exportName' is implicitly derived by 'name'. ❯ src/parser/analyse/story/attributes/identifiers.test.ts:250:7
src/parser/analyse/story/attributes/identifiers.test.ts > getStoriesIdentifiers > throws on identical 'exportName' attributes when deriving from 'name' attributes: src/parser/analyse/story/attributes/identifiers.test.ts#L283
Error: Snapshot `getStoriesIdentifiers > throws on identical 'exportName' attributes when deriving from 'name' attributes 1` mismatched - Expected + Received @@ -1,6 +1,6 @@ - [SB_SVELTE_CSF_PARSER_ANALYSE_STORY_0006 (DuplicateStoryIdentifiersError): Duplicate exportNames found between two '<Story />' definitions in stories file: file:///Users/xeho91/Nextcloud/Projects/oss/addon-svelte-csf/duplicate-identifiers.stories.svelte + [SB_SVELTE_CSF_PARSER_ANALYSE_STORY_0006 (DuplicateStoryIdentifiersError): Duplicate exportNames found between two '<Story />' definitions in stories file: file:///home/runner/work/addon-svelte-csf/addon-svelte-csf/duplicate-identifiers.stories.svelte First instance: <Story name={undefined} exportName="SomeStoryName" ... /> Second instance: <Story name="some story name!!!" exportName="SomeStoryName" ... /> This can happen when 'exportName' is implicitly derived by 'name'. ❯ src/parser/analyse/story/attributes/identifiers.test.ts:283:7
Test
Process completed with exit code 1.