Skip to content

Commit 2fb5ed5

Browse files
committed
update snapshots
1 parent 7e120a8 commit 2fb5ed5

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

code/lib/core-events/src/errors/preview-errors.test.ts

+16-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,22 @@ describe('UnknownFlowArgTypesError', () => {
88
raw: "SomeType['someProperty']",
99
};
1010

11-
const message = `"There was a failure when generating ArgTypes in Typescript for {"name":"signature","raw":"SomeType['someProperty']"}
12-
This type is either not supported or it is a bug in Storybook.
13-
If you think this is a bug, please open an issue in Github."`;
14-
1511
const typeError = new UnknownArgTypesError({ type, language: 'Typescript' });
16-
expect(typeError.message).toMatchInlineSnapshot(message);
12+
expect(typeError.message).toMatchInlineSnapshot(`
13+
"There was a failure when generating detailed ArgTypes in Typescript for:
14+
15+
{
16+
"name": "signature",
17+
"raw": "SomeType['someProperty']"
18+
}
19+
20+
Storybook will fall back to use a generic type description instead.
21+
22+
This type is either not supported or it is a bug in the docgen generation in Storybook.
23+
If you think this is a bug, please detail it as much as possible in the Github issue.
24+
25+
More info: https://github.com/storybookjs/storybook/issues/26606
26+
"
27+
`);
1728
});
1829
});

code/lib/core-events/src/errors/preview-errors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export class UnknownArgTypesError extends StorybookError {
272272
273273
${JSON.stringify(this.data.type, null, 2)}
274274
275-
so Storybook will fall back to a generic type description.
275+
Storybook will fall back to use a generic type description instead.
276276
277277
This type is either not supported or it is a bug in the docgen generation in Storybook.
278278
If you think this is a bug, please detail it as much as possible in the Github issue.`;

0 commit comments

Comments
 (0)