orc-scripts 5.0.0-dev.4 → 5.0.0-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orc-scripts",
|
|
3
|
-
"version": "5.0.0-dev.
|
|
3
|
+
"version": "5.0.0-dev.6",
|
|
4
4
|
"description": "Scripts toolbox for Orckestra",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"bin": {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"babel-plugin-formatjs": "^10.5.16",
|
|
70
70
|
"babel-plugin-react-intl-auto": "^3.1.0",
|
|
71
71
|
"babel-plugin-root-import": "^6.5.0",
|
|
72
|
-
"
|
|
72
|
+
"cheerio": "=1.0.0-rc.3",
|
|
73
73
|
"classnames": "^2.2.6",
|
|
74
74
|
"connected-react-router": "^6.3.1",
|
|
75
75
|
"core-js": "^3.0.0",
|
|
@@ -133,13 +133,10 @@
|
|
|
133
133
|
"rimraf": "^3.0.0",
|
|
134
134
|
"seamless-immutable": "^7.1.3",
|
|
135
135
|
"sinon": "^9.0.0",
|
|
136
|
-
"style-loader": "^3.3.3",
|
|
137
|
-
"styled-components": "5.1.1",
|
|
138
|
-
"styled-transition-group": "^2.0.0",
|
|
139
136
|
"svg-inline-loader": "^0.8.2",
|
|
140
137
|
"ts-jest": "^26.4.0",
|
|
141
|
-
"
|
|
142
|
-
"
|
|
138
|
+
"@fontsource/open-sans": "^5.2.7",
|
|
139
|
+
"@fontsource/roboto-condensed": "^5.2.8",
|
|
143
140
|
"unexpected": "^11.1.0",
|
|
144
141
|
"unexpected-dom": "^4.14.3",
|
|
145
142
|
"unexpected-immutable": "^0.5.0",
|
package/src/config/babelrc.js
CHANGED
|
@@ -13,7 +13,6 @@ module.exports = {
|
|
|
13
13
|
presets: [[require.resolve("@babel/preset-env"), envOptions]],
|
|
14
14
|
plugins: [
|
|
15
15
|
require.resolve("@babel/plugin-syntax-dynamic-import"),
|
|
16
|
-
isTest || isReact ? require.resolve("babel-plugin-styled-components") : null,
|
|
17
16
|
require.resolve("@babel/plugin-transform-template-literals"),
|
|
18
17
|
require.resolve("@babel/plugin-transform-destructuring"),
|
|
19
18
|
require.resolve("@babel/plugin-transform-object-rest-spread"),
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
|
|
4
|
-
const TestStyled = styled.div`
|
|
5
|
-
color: red;
|
|
6
|
-
background-color: green;
|
|
7
|
-
`;
|
|
8
|
-
|
|
9
|
-
const SvgStyled = styled.svg`
|
|
10
|
-
height: 10px;
|
|
11
|
-
width: 100px;
|
|
12
|
-
`;
|
|
13
2
|
|
|
14
3
|
describe("Styled component plugin for unexpected", () => {
|
|
15
4
|
let firstSheet, secondSheet;
|
|
@@ -68,36 +57,6 @@ describe("Styled component plugin for unexpected", () => {
|
|
|
68
57
|
"color: blue;",
|
|
69
58
|
));
|
|
70
59
|
|
|
71
|
-
it("passes with SVG element", () =>
|
|
72
|
-
expect(
|
|
73
|
-
<SvgStyled />,
|
|
74
|
-
"when mounted",
|
|
75
|
-
"to have style rules satisfying",
|
|
76
|
-
expect.it("to be a", "string").and("to contain", "width: 100px;"),
|
|
77
|
-
));
|
|
78
|
-
|
|
79
|
-
it("passes with a styled component", () =>
|
|
80
|
-
expect(
|
|
81
|
-
<TestStyled />,
|
|
82
|
-
"when mounted",
|
|
83
|
-
"to have style rules satisfying",
|
|
84
|
-
expect.it("to be a", "string").and("to contain", "color: red;"),
|
|
85
|
-
));
|
|
86
|
-
|
|
87
|
-
it("gives a detailed diff", () =>
|
|
88
|
-
expect(
|
|
89
|
-
() => expect(<TestStyled />, "when mounted", "to have style rules satisfying", "to contain", "color: blue;"),
|
|
90
|
-
"to throw",
|
|
91
|
-
new RegExp(
|
|
92
|
-
'expected <div class="unexpected-stylestest__TestStyled-sc-\\w+-0 [\\w-]+"></div>\n' +
|
|
93
|
-
"to have style rules satisfying to contain 'color: blue;'\n" +
|
|
94
|
-
" expected '\\.\\w+ \\{color: red; background-color: green;\\}' to contain 'color: blue;'\n" +
|
|
95
|
-
"\n" +
|
|
96
|
-
" \\.\\w+ \\{color: red; background-color: green;\\}\n" +
|
|
97
|
-
" \\^\\^\\^\\^\\^\\^\\^ \\^\\^\\^\\^\\^\\^\\^",
|
|
98
|
-
),
|
|
99
|
-
));
|
|
100
|
-
|
|
101
60
|
it("fails if no class name", () =>
|
|
102
61
|
expect(
|
|
103
62
|
() => expect(<div id="foo" />, "when mounted", "to have style rules satisfying", "to be ok"),
|