Skip to content

use context="module" on legacy component tests #177

use context="module" on legacy component tests

use context="module" on legacy component tests #177

Triggered via push October 19, 2024 08:11
Status Failure
Total duration 40s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors
src/compiler/pre-transform/index.test.ts > codemodLegacyNodes > replaces 'Template' with snippet block: src/compiler/pre-transform/index.test.ts#L84
Error: Snapshot `codemodLegacyNodes > replaces 'Template' with snippet block 1` mismatched - Expected + Received @@ -1,6 +1,6 @@ - "<script context="module"> + "<script module> import { defineMeta } from "@storybook/addon-svelte-csf"; /** This is a description for the **Button** component stories. */ const { Story } = defineMeta({ title: "Atoms/Button", component: Button }); </script> ❯ src/compiler/pre-transform/index.test.ts:84:32
src/compiler/pre-transform/index.test.ts > codemodLegacyNodes > moves package import declaration from instance to module tag: src/compiler/pre-transform/index.test.ts#L154
Error: Snapshot `codemodLegacyNodes > moves package import declaration from instance to module tag 1` mismatched - Expected + Received - "<script context="module"> + "<script module> import { defineMeta } from "@storybook/addon-svelte-csf"; </script>" ❯ src/compiler/pre-transform/index.test.ts:154:32
src/compiler/pre-transform/index.test.ts > codemodLegacyNodes > moves transformed export const meta from instance to module tag: src/compiler/pre-transform/index.test.ts#L177
Error: Snapshot `codemodLegacyNodes > moves transformed export const meta from instance to module tag 1` mismatched - Expected + Received @@ -1,6 +1,6 @@ - "<script context="module"> + "<script module> import { defineMeta } from "@storybook/addon-svelte-csf"; const { Story } = defineMeta({ args: { primary: true }, tags: ["autodocs"] ❯ src/compiler/pre-transform/index.test.ts:177:32
src/compiler/pre-transform/index.test.ts > codemodLegacyNodes > moves transformed export const meta and stories component import declaration from instance to module tag: src/compiler/pre-transform/index.test.ts#L209
Error: Snapshot `codemodLegacyNodes > moves transformed export const meta and stories component import declaration from instance to module tag 1` mismatched - Expected + Received @@ -1,6 +1,6 @@ - "<script context="module"> + "<script module> import { defineMeta } from "@storybook/addon-svelte-csf"; import Button from "./Button.svelte"; const { Story } = defineMeta({ component: Button, ❯ src/compiler/pre-transform/index.test.ts:209:32
Test
Process completed with exit code 1.