Skip to content

Commit d88a198

Browse files
authored
Merge pull request #455 from system-ui/update-deps
Update dependencies
2 parents 4e64dbf + 9fd98da commit d88a198

File tree

8 files changed

+1741
-1234
lines changed

8 files changed

+1741
-1234
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"husky": ">=1",
2626
"jest": "^24.8.0",
2727
"jest-emotion": "^10.0.11",
28+
"jest-mock-console": "^1.0.0",
2829
"lerna": "^3.14.1",
2930
"lint-staged": "9",
3031
"microbundle": "^0.11.0",

packages/editor/test/ColorPicker.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react'
22
import renderer from 'react-test-renderer'
33
import { render, fireEvent, cleanup } from '@testing-library/react'
44
import { Provider } from 'reakit/Provider'
5+
import mockConsole from 'jest-mock-console'
56
import { ColorPicker } from '../src'
67

78
const { act } = renderer
@@ -20,11 +21,16 @@ if (global.document) {
2021
}
2122

2223
test('renders with styles', () => {
24+
// ignore react-color dependency-related warning
25+
const restore = mockConsole()
2326
const json = renderer.create(<ColorPicker color="#f00" />).toJSON()
2427
expect(json).toMatchSnapshot()
28+
restore()
2529
})
2630

2731
test('snapshot renders as a popover', () => {
32+
// ignore react-color dependency-related warning
33+
const restore = mockConsole()
2834
const json = renderer
2935
.create(
3036
<Provider>
@@ -35,6 +41,7 @@ test('snapshot renders as a popover', () => {
3541
)
3642
.toJSON()
3743
expect(json).toMatchSnapshot()
44+
restore()
3845
})
3946

4047
/*

packages/tachyons/test/__snapshots__/test.js.snap

Lines changed: 106 additions & 106 deletions
Large diffs are not rendered by default.

packages/tachyons/test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import 'babel-polyfill'
22

33
import tachyonsGenerator from 'tachyons-generator'
4+
import mockConsole from 'jest-mock-console'
45
import toTachyons from '../src'
56

67
const theme = {
@@ -34,7 +35,10 @@ it('transforms a theme config to a Tachyons config', () => {
3435
})
3536

3637
it('generates the proper config for the Tachyons generator', async () => {
38+
// ignore warnings
39+
const restore = mockConsole()
3740
const { css: result } = await tachyonsGenerator(toTachyons(theme)).generate()
3841

3942
expect(result).toMatchSnapshot()
43+
restore()
4044
})

0 commit comments

Comments
 (0)