Skip to content

Core: Implement afterEach #41709

Core: Implement afterEach

Core: Implement afterEach #41709

Triggered via pull request November 12, 2024 14:37
Status Failure
Total duration 10m 2s
Artifacts

tests-unit.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

10 errors
src/preview-api/modules/store/StoryStore.test.ts > StoryStore > raw > produces an array of stories: code/core/src/preview-api/modules/store/StoryStore.test.ts#L645
Error: Snapshot `StoryStore > raw > produces an array of stories 1` mismatched - Expected + Received @@ -1,7 +1,8 @@ [ { + "applyAfterEach": [Function], "applyBeforeEach": [Function], "applyLoaders": [Function], "argTypes": { "a": { "name": "a", @@ -51,10 +52,11 @@ "unboundStoryFn": [Function], "undecoratedStoryFn": [Function], "usesMount": false, }, { + "applyAfterEach": [Function], "applyBeforeEach": [Function], "applyLoaders": [Function], "argTypes": { "a": { "name": "a", @@ -104,10 +106,11 @@ "unboundStoryFn": [Function], "undecoratedStoryFn": [Function], "usesMount": false, }, { + "applyAfterEach": [Function], "applyBeforeEach": [Function], "applyLoaders": [Function], "argTypes": { "a": { "name": "a", ❯ src/preview-api/modules/store/StoryStore.test.ts:645:27
src/preview-api/modules/preview-web/render/StoryRender.test.ts > StoryRender > does run play function if passed autoplay=true: code/core/src/preview-api/modules/preview-web/render/StoryRender.ts#L362
TypeError: this.callbacks.showException is not a function ❯ StoryRender.render src/preview-api/modules/preview-web/render/StoryRender.ts:362:22 ❯ src/preview-api/modules/preview-web/render/StoryRender.test.ts:75:5
src/preview-api/modules/preview-web/render/StoryRender.test.ts > StoryRender > only rerenders once when triggered multiple times while pending: code/core/src/preview-api/modules/preview-web/render/StoryRender.test.ts#L134
AssertionError: expected "spy" to be called 2 times, but got 1 times ❯ src/preview-api/modules/preview-web/render/StoryRender.test.ts:134:34
src/preview-api/modules/preview-web/render/StoryRender.test.ts > StoryRender > calls mount if play function does not destructure mount: code/core/src/preview-api/modules/preview-web/render/StoryRender.ts#L362
TypeError: this.callbacks.showException is not a function ❯ StoryRender.render src/preview-api/modules/preview-web/render/StoryRender.ts:362:22 ❯ src/preview-api/modules/preview-web/render/StoryRender.test.ts:155:5
src/preview-api/modules/preview-web/render/StoryRender.test.ts > StoryRender > does not call mount twice if mount called in play function: code/core/src/preview-api/modules/preview-web/render/StoryRender.ts#L362
TypeError: this.callbacks.showException is not a function ❯ StoryRender.render src/preview-api/modules/preview-web/render/StoryRender.ts:362:22 ❯ src/preview-api/modules/preview-web/render/StoryRender.test.ts:177:5
src/preview-api/modules/preview-web/render/StoryRender.test.ts > StoryRender > enters rendering phase during play if play function calls mount: code/core/src/preview-api/modules/preview-web/render/StoryRender.ts#L362
TypeError: this.callbacks.showException is not a function ❯ StoryRender.render src/preview-api/modules/preview-web/render/StoryRender.ts:362:22 ❯ src/preview-api/modules/preview-web/render/StoryRender.test.ts:254:5
src/preview-api/modules/store/csf/composeConfigs.test.ts > composeConfigs > sets default (empty) values for fields: code/core/src/preview-api/modules/store/csf/composeConfigs.test.ts#L15
AssertionError: expected { parameters: {}, …(20) } to deeply equal { parameters: {}, …(13) } - Expected + Received Object { + "afterEach": Array [], + "applyDecorators": undefined, "argTypes": Object {}, "argTypesEnhancers": Array [], "args": Object {}, "argsEnhancers": Array [], "beforeAll": Any<Function>, "beforeEach": Array [], "decorators": Array [], "globalTypes": Object {}, "globals": Object {}, "initialGlobals": Object {}, "loaders": Array [], + "mount": undefined, "parameters": Object {}, + "render": undefined, + "renderToCanvas": undefined, + "renderToDOM": undefined, "runStep": Any<Function>, "tags": Array [], + "testingLibraryRender": undefined, } ❯ src/preview-api/modules/store/csf/composeConfigs.test.ts:15:32
src/preview-api/modules/store/csf/composeConfigs.test.ts > composeConfigs > composes parameters: code/core/src/preview-api/modules/store/csf/composeConfigs.test.ts#L43
AssertionError: expected { Object (parameters, decorators, ...) } to deeply equal { Object (parameters, decorators, ...) } - Expected + Received Object { + "afterEach": Array [], + "applyDecorators": undefined, "argTypes": Object {}, "argTypesEnhancers": Array [], "args": Object {}, "argsEnhancers": Array [], "beforeAll": Any<Function>, "beforeEach": Array [], "decorators": Array [], "globalTypes": Object {}, "globals": Object {}, "initialGlobals": Object {}, "loaders": Array [], + "mount": undefined, "parameters": Object { "obj": Object { "a": "2", "b": "1", "c": "2", }, }, + "render": undefined, + "renderToCanvas": undefined, + "renderToDOM": undefined, "runStep": Any<Function>, "tags": Array [], + "testingLibraryRender": undefined, } ❯ src/preview-api/modules/store/csf/composeConfigs.test.ts:43:7
src/preview-api/modules/store/csf/composeConfigs.test.ts > composeConfigs > composes export defaults: code/core/src/preview-api/modules/store/csf/composeConfigs.test.ts#L75
AssertionError: expected { Object (parameters, decorators, ...) } to deeply equal { Object (parameters, decorators, ...) } - Expected + Received Object { + "afterEach": Array [], + "applyDecorators": undefined, "argTypes": Object {}, "argTypesEnhancers": Array [], "args": Object {}, "argsEnhancers": Array [], "beforeAll": Any<Function>, "beforeEach": Array [], "decorators": Array [], "globalTypes": Object {}, "globals": Object {}, "initialGlobals": Object {}, "loaders": Array [], + "mount": undefined, "parameters": Object { "obj": Object { "a": "2", "b": "1", "c": "2", }, }, + "render": undefined, + "renderToCanvas": undefined, + "renderToDOM": undefined, "runStep": Any<Function>, "tags": Array [], + "testingLibraryRender": undefined, } ❯ src/preview-api/modules/store/csf/composeConfigs.test.ts:75:7