feat: support react-docgen-typescript #595
Annotations
14 errors
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > DefaultExport.tsx has code block generated:
packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > DefaultExport.tsx has code block generated 1` mismatched
- Expected
+ Received
@@ -21,11 +21,11 @@
DefaultExport.__docgenInfo = { "description": "A simple component.", "displayName": "DefaultExport", "props": { "color": { "defaultValue": null, "description": "Button color.", "name": "color", "required": true, "type": { "name": "\"blue\" | \"green\"" } } } };
}
catch (__react_docgen_typescript_loader_error) { }",
"map": SourceMap {
"file": undefined,
- "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;",
+ "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
"names": [],
"sources": [
"",
],
"sourcesContent": undefined,
❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
|
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > DefaultExportWithDisplayName.tsx has code block generated:
packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > DefaultExportWithDisplayName.tsx has code block generated 1` mismatched
- Expected
+ Received
@@ -23,11 +23,11 @@
DefaultExportComponentWithDisplayName.__docgenInfo = { "description": "A simple component.", "displayName": "DefaultExportComponentWithDisplayName", "props": { "color": { "defaultValue": null, "description": "Button color.", "name": "color", "required": true, "type": { "name": "\"blue\" | \"green\"" } } } };
}
catch (__react_docgen_typescript_loader_error) { }",
"map": SourceMap {
"file": undefined,
- "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;",
+ "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
"names": [],
"sources": [
"",
],
"sourcesContent": undefined,
❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
|
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > DefaultPropValue.tsx has code block generated:
packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > DefaultPropValue.tsx has code block generated 1` mismatched
- Expected
+ Received
@@ -43,11 +43,11 @@
DefaultPropValueComponent.__docgenInfo = { "description": "Component with a prop with a default value.", "displayName": "DefaultPropValueComponent", "props": { "color": { "defaultValue": { value: "blue" }, "description": "Button color.", "name": "color", "required": true, "type": { "name": "\"blue\" | \"green\"" } }, "counter": { "defaultValue": { value: 123 }, "description": "Button counter.", "name": "counter", "required": false, "type": { "name": "number" } }, "disabled": { "defaultValue": { value: false }, "description": "Button disabled.", "name": "disabled", "required": false, "type": { "name": "boolean" } } } };
}
catch (__react_docgen_typescript_loader_error) { }",
"map": SourceMap {
"file": undefined,
- "mappings": "AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;",
+ "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
"names": [],
"sources": [
"",
],
"sourcesContent": undefined,
❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
|
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > HyphenatedPropName.tsx has code block generated:
packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > HyphenatedPropName.tsx has code block generated 1` mismatched
- Expected
+ Received
@@ -23,11 +23,11 @@
HyphenatedPropNameComponent.__docgenInfo = { "description": "A component with a hyphenated prop name.", "displayName": "HyphenatedPropNameComponent", "props": { "button-color": { "defaultValue": null, "description": "Button color.", "name": "button-color", "required": true, "type": { "name": "\"blue\" | \"green\"" } } } };
}
catch (__react_docgen_typescript_loader_error) { }",
"map": SourceMap {
"file": undefined,
- "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
+ "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
"names": [],
"sources": [
"",
],
"sourcesContent": undefined,
❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
|
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > MultilineDescription.tsx has code block generated:
packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > MultilineDescription.tsx has code block generated 1` mismatched
- Expected
+ Received
@@ -23,11 +23,11 @@
MultilineDescriptionComponent.__docgenInfo = { "description": "A component with a multiline description.\n\nSecond line.", "displayName": "MultilineDescriptionComponent", "props": { "color": { "defaultValue": null, "description": "Button color.", "name": "color", "required": true, "type": { "name": "\"blue\" | \"green\"" } } } };
}
catch (__react_docgen_typescript_loader_error) { }",
"map": SourceMap {
"file": undefined,
- "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
+ "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
"names": [],
"sources": [
"",
],
"sourcesContent": undefined,
❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
|
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > MultilinePropDescription.tsx has code block generated:
packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > MultilinePropDescription.tsx has code block generated 1` mismatched
- Expected
+ Received
@@ -25,11 +25,11 @@
MultilinePropDescriptionComponent.__docgenInfo = { "description": "A component with multiline prop description.", "displayName": "MultilinePropDescriptionComponent", "props": { "color": { "defaultValue": null, "description": "This is a multiline prop description.\n\nSecond line.", "name": "color", "required": true, "type": { "name": "\"blue\" | \"green\"" } } } };
}
catch (__react_docgen_typescript_loader_error) { }",
"map": SourceMap {
"file": undefined,
- "mappings": "AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
+ "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
"names": [],
"sources": [
"",
],
"sourcesContent": undefined,
❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
|
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > MultiProps.tsx has code block generated:
packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > MultiProps.tsx has code block generated 1` mismatched
- Expected
+ Received
@@ -22,11 +22,11 @@
MultiPropsComponent.__docgenInfo = { "description": "This is a component with multiple props.", "displayName": "MultiPropsComponent", "props": { "color": { "defaultValue": null, "description": "Button color.", "name": "color", "required": true, "type": { "name": "\"blue\" | \"green\"" } }, "size": { "defaultValue": null, "description": "Button size.", "name": "size", "required": true, "type": { "name": "\"small\" | \"large\"" } } } };
}
catch (__react_docgen_typescript_loader_error) { }",
"map": SourceMap {
"file": undefined,
- "mappings": "AAAA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;",
+ "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
"names": [],
"sources": [
"",
],
"sourcesContent": undefined,
❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
|
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > Simple.tsx has code block generated:
packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > Simple.tsx has code block generated 1` mismatched
- Expected
+ Received
@@ -19,11 +19,11 @@
SimpleComponent.__docgenInfo = { "description": "A simple component.", "displayName": "SimpleComponent", "props": { "color": { "defaultValue": null, "description": "Button color.", "name": "color", "required": true, "type": { "name": "\"blue\" | \"green\"" } } } };
}
catch (__react_docgen_typescript_loader_error) { }",
"map": SourceMap {
"file": undefined,
- "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;",
+ "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
"names": [],
"sources": [
"",
],
"sourcesContent": undefined,
❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
|
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > SimpleWithDisplayName.tsx has code block generated:
packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > SimpleWithDisplayName.tsx has code block generated 1` mismatched
- Expected
+ Received
@@ -21,11 +21,11 @@
SimpleComponentWithDisplayName.__docgenInfo = { "description": "A simple component.", "displayName": "SimpleComponentWithDisplayName", "props": { "color": { "defaultValue": null, "description": "Button color.", "name": "color", "required": true, "type": { "name": "\"blue\" | \"green\"" } } } };
}
catch (__react_docgen_typescript_loader_error) { }",
"map": SourceMap {
"file": undefined,
- "mappings": "AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;",
+ "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
"names": [],
"sources": [
"",
],
"sourcesContent": undefined,
❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
|
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > TextOnlyComponent.tsx has code block generated:
packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > TextOnlyComponent.tsx has code block generated 1` mismatched
- Expected
+ Received
@@ -16,11 +16,11 @@
SimpleComponent.__docgenInfo = { "description": "A component with only text content wrapped in a div.\n\nRef: https://github.com/strothj/react-docgen-typescript-loader/issues/7", "displayName": "SimpleComponent", "props": {} };
}
catch (__react_docgen_typescript_loader_error) { }",
"map": SourceMap {
"file": undefined,
- "mappings": "AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
+ "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;",
"names": [],
"sources": [
"",
],
"sourcesContent": undefined,
❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
|
test-build (18.x, ubuntu-latest)
The job was canceled because "_18_x_windows-latest" failed.
|
test-build (18.x, ubuntu-latest)
The operation was canceled.
|
test-build (18.x, macos-14)
The job running on runner GitHub Actions 4 has exceeded the maximum execution time of 360 minutes.
|
test-build (18.x, macos-14)
The operation was canceled.
|