Skip to content

Commit db54699

Browse files
committedOct 24, 2019
use react-docgen@5-beta and update test snapshots
1 parent 7bdb5d3 commit db54699

File tree

19 files changed

+205
-94
lines changed

19 files changed

+205
-94
lines changed
 

‎package-lock.json

+179-68
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
],
3535
"dependencies": {
3636
"lodash": "^4.17.15",
37-
"react-docgen": "^4.1.1",
37+
"react-docgen": "^5.0.0-beta.1",
3838
"recast": "^0.14.7"
3939
},
4040
"license": "MIT"

‎test/fixtures/case1/expected.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ CalendarDay.__docgenInfo = {
364364
},
365365
"onDayClick": {
366366
"defaultValue": {
367-
"value": "function() {}",
367+
"value": "() {}",
368368
"computed": false
369369
},
370370
"type": {
@@ -375,7 +375,7 @@ CalendarDay.__docgenInfo = {
375375
},
376376
"onDayMouseDown": {
377377
"defaultValue": {
378-
"value": "function() {}",
378+
"value": "() {}",
379379
"computed": false
380380
},
381381
"type": {
@@ -386,7 +386,7 @@ CalendarDay.__docgenInfo = {
386386
},
387387
"onDayMouseUp": {
388388
"defaultValue": {
389-
"value": "function() {}",
389+
"value": "() {}",
390390
"computed": false
391391
},
392392
"type": {
@@ -397,7 +397,7 @@ CalendarDay.__docgenInfo = {
397397
},
398398
"onDayMouseEnter": {
399399
"defaultValue": {
400-
"value": "function() {}",
400+
"value": "() {}",
401401
"computed": false
402402
},
403403
"type": {
@@ -408,7 +408,7 @@ CalendarDay.__docgenInfo = {
408408
},
409409
"onDayMouseLeave": {
410410
"defaultValue": {
411-
"value": "function() {}",
411+
"value": "() {}",
412412
"computed": false
413413
},
414414
"type": {
@@ -419,7 +419,7 @@ CalendarDay.__docgenInfo = {
419419
},
420420
"onDayTouchStart": {
421421
"defaultValue": {
422-
"value": "function() {}",
422+
"value": "() {}",
423423
"computed": false
424424
},
425425
"type": {
@@ -430,7 +430,7 @@ CalendarDay.__docgenInfo = {
430430
},
431431
"onDayTouchEnd": {
432432
"defaultValue": {
433-
"value": "function() {}",
433+
"value": "() {}",
434434
"computed": false
435435
},
436436
"type": {
@@ -441,7 +441,7 @@ CalendarDay.__docgenInfo = {
441441
},
442442
"onDayTouchTap": {
443443
"defaultValue": {
444-
"value": "function() {}",
444+
"value": "() {}",
445445
"computed": false
446446
},
447447
"type": {
@@ -470,4 +470,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
470470
docgenInfo: CalendarDay.__docgenInfo,
471471
path: "test/fixtures/case1/actual.js"
472472
};
473-
}
473+
}

‎test/fixtures/case2/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
7979
docgenInfo: ErrorBox.__docgenInfo,
8080
path: "test/fixtures/case2/actual.js"
8181
};
82-
}
82+
}

‎test/fixtures/case4/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
7474
docgenInfo: Button.__docgenInfo,
7575
path: "test/fixtures/case4/actual.js"
7676
};
77-
}
77+
}

‎test/fixtures/case5/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
4646
docgenInfo: First.__docgenInfo,
4747
path: "test/fixtures/case5/actual.js"
4848
};
49-
}
49+
}

‎test/fixtures/case7/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
4545
docgenInfo: First.__docgenInfo,
4646
path: "test/fixtures/case7/actual.js"
4747
};
48-
}
48+
}

‎test/fixtures/case9/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ function Modal(component) {
5757
return _class;
5858
}(component)
5959
);
60-
}
60+
}

‎test/fixtures/differentName/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
108108
docgenInfo: OriginalName.__docgenInfo,
109109
path: "test/fixtures/differentName/actual.js"
110110
};
111-
}
111+
}

‎test/fixtures/example-module-exports/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
3939
docgenInfo: App.__docgenInfo,
4040
path: "test/fixtures/example-module-exports/actual.js"
4141
};
42-
}
42+
}

‎test/fixtures/example/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
8080
docgenInfo: App.__docgenInfo,
8181
path: "test/fixtures/example/actual.js"
8282
};
83-
}
83+
}

‎test/fixtures/flowTypeNotWorking/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ var StyledButton = _styledComponents["default"].button(_templateObject(), functi
3535
return props.hoverColor ? props.hoverColor : '#81A2CA';
3636
});
3737

38-
exports.StyledButton = StyledButton;
38+
exports.StyledButton = StyledButton;

‎test/fixtures/functionDeclaration/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
4646
docgenInfo: FuncDeclaration.__docgenInfo,
4747
path: "test/fixtures/functionDeclaration/actual.js"
4848
};
49-
}
49+
}

‎test/fixtures/hoc-multiple/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
151151
docgenInfo: CompA.__docgenInfo,
152152
path: "test/fixtures/hoc-multiple/actual.js"
153153
};
154-
}
154+
}

‎test/fixtures/hoc/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
101101
docgenInfo: Component.__docgenInfo,
102102
path: "test/fixtures/hoc/actual.js"
103103
};
104-
}
104+
}

‎test/fixtures/multiple-exports/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
130130
docgenInfo: ErrorBox2.__docgenInfo,
131131
path: "test/fixtures/multiple-exports/actual.js"
132132
};
133-
}
133+
}

‎test/fixtures/multipleExports2/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,4 +270,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
270270
docgenInfo: Breadcrumb.__docgenInfo,
271271
path: "test/fixtures/multipleExports2/actual.js"
272272
};
273-
}
273+
}

‎test/fixtures/reactCreateElement/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
7070
docgenInfo: Kitten.__docgenInfo,
7171
path: "test/fixtures/reactCreateElement/actual.js"
7272
};
73-
}
73+
}

‎test/fixtures/with-custom-handlers/expected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
8181
docgenInfo: ErrorBox.__docgenInfo,
8282
path: "test/fixtures/with-custom-handlers/actual.js"
8383
};
84-
}
84+
}

0 commit comments

Comments
 (0)
Please sign in to comment.