Skip to content

Commit 1c53fcf

Browse files
authored
Merge pull request #346 from simenko/chore/update-dependencies
Chore/update dependencies
2 parents bd7ff33 + 8746a91 commit 1c53fcf

File tree

128 files changed

+7856
-21294
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+7856
-21294
lines changed

CHANGELOG.md

+8

docs/components/ComponentsList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface MenuItemProps extends ActionLinkProps {
3838
const NavItems = styled.div``;
3939

4040
const MenuItem = styled(ActionLink)<MenuItemProps>(
41-
themed(
41+
themed<MenuItemProps>(
4242
({ selected, theme }) => `
4343
position: relative;
4444
display: block;

docs/components/Layout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ interface ContentColumn {
5555
}
5656

5757
const ContentColumn = styled('div')<ContentColumn>(
58-
themed(
58+
themed<ContentColumn>(
5959
({ hasSidebar, theme }) => `
6060
flex: 1;
6161
padding: ${distance.xxlarge} ${distance.xlarge};
6262
${
6363
hasSidebar
6464
? `margin-left: ${tocColumnWidth}px;`
65-
: `width: ${theme.breakpoints.large}px;
65+
: `width: ${theme.breakpoints.large}px;
6666
margin: 0 auto;`
6767
}
6868
`,

docs/components/SectionRenderer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface SectionRendererProps {
1919
}
2020

2121
const SectionRenderer: React.SFC<SectionRendererProps> = props => {
22-
const { description, content, sections, components, depth, slug, pagePerSection } = props;
22+
const { description, content, sections, components, depth, slug, pagePerSection, name } = props;
2323

2424
return (
2525
<section>
-160 Bytes
566 Bytes
566 Bytes
302 Bytes
150 Bytes
-235 Bytes
184 Bytes
343 Bytes
437 Bytes
47 Bytes
508 Bytes
-33 Bytes
183 Bytes
227 Bytes
25 Bytes
18 Bytes

integration/setup.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ const { setup: setupPuppeteer } = require('jest-puppeteer-docker');
22
const exec = require('child_process').exec;
33

44
const buildDemo = () =>
5-
new Promise(resolve => {
6-
exec('npm run build:demo:test', undefined, resolve);
5+
new Promise((resolve, reject) => {
6+
const builder = exec('npm run build:demo:test', undefined, resolve);
7+
builder.on('error', reject)
8+
builder.stdout.pipe(process.stdout)
9+
builder.stderr.pipe(process.stderr)
710
});
811

912
module.exports = jestConfig => Promise.all([buildDemo(), setupPuppeteer(jestConfig)]);

integration/visual.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ function wait(ms) {
44

55
describe('Visual testing', () => {
66
test('Components available', () => expect(components && components.length > 0).toBeTruthy());
7-
87
if (components && components.length) {
98
for (const { identifier, link, skip, wait: waitMs } of components) {
109
const testFunction = skip ? test.skip : test;
@@ -21,6 +20,7 @@ describe('Visual testing', () => {
2120
try {
2221
expect(screenshot).toMatchImageSnapshot({
2322
customSnapshotIdentifier: identifier,
23+
dumpDiffToConsole: true,
2424
});
2525
} catch (e) {
2626
throw new Error(`${e}\n${link}`);

0 commit comments

Comments
 (0)