Skip to content

Commit ec58050

Browse files
committed
added in babel plugin for css in jsx
1 parent 790291c commit ec58050

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

.babelrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"plugins": [
77
"@babel/plugin-proposal-class-properties",
88
"@babel/plugin-proposal-object-rest-spread",
9-
"@babel/plugin-transform-runtime"
9+
"@babel/plugin-transform-runtime",
10+
"styled-jsx/babel"
1011
]
1112
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"react-dom": "^16.9.0",
7171
"react-linkify": "^0.2.2",
7272
"semver": "^6.3.0",
73+
"styled-jsx": "^3.2.2",
7374
"tempy": "^0.3.0",
7475
"tildify": "^2.0.0",
7576
"tmp": "^0.1.0",
@@ -182,4 +183,4 @@
182183
]
183184
}
184185
}
185-
}
186+
}

test/keyboard-number-input.js

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ import Adapter from 'enzyme-adapter-react-16';
55
import KeyboardNumberInput from '../renderer/components/keyboard-number-input';
66

77
configure({adapter: new Adapter()});
8-
test('can connect to this page', t => {
9-
t.pass();
10-
});
118

129
test('it should render input', t => {
1310
const wrapper = mount(<KeyboardNumberInput/>);

test/window-header.js

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ import Adapter from 'enzyme-adapter-react-16';
55
import WindowHeader from '../renderer/components/window-header';
66

77
configure({adapter: new Adapter()});
8-
test('can connect to this page', t => {
9-
t.pass();
10-
});
118

129
test('can mount component window header', t => {
1310
const wrapper = shallow(<WindowHeader/>);

0 commit comments

Comments
 (0)