Skip to content

Commit 0f259ba

Browse files
authored
Merge branch 'main' into improve-tohaveclass-message
2 parents e4d738f + 4cb606c commit 0f259ba

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.all-contributorsrc

+9
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,15 @@
650650
"contributions": [
651651
"platform"
652652
]
653+
},
654+
{
655+
"login": "yannbf",
656+
"name": "Yann Braga",
657+
"avatar_url": "https://avatars.githubusercontent.com/u/1671563?v=4",
658+
"profile": "https://github.com/yannbf",
659+
"contributions": [
660+
"code"
661+
]
653662
}
654663
],
655664
"repoHost": "https://github.com",

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,7 @@ Thanks goes to these people ([emoji key][emojis]):
13551355
<tr>
13561356
<td align="center"><a href="http://tu4mo.com"><img src="https://avatars.githubusercontent.com/u/16735302?v=4?s=100" width="100px;" alt=""/><br /><sub><b>tu4mo</b></sub></a><br /><a href="https://github.com/testing-library/jest-dom/commits?author=tu4mo" title="Documentation">📖</a></td>
13571357
<td align="center"><a href="https://matan.io"><img src="https://avatars.githubusercontent.com/u/12711091?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Matan Borenkraout</b></sub></a><br /><a href="#platform-MatanBobi" title="Packaging/porting to new platform">📦</a></td>
1358+
<td align="center"><a href="https://github.com/yannbf"><img src="https://avatars.githubusercontent.com/u/1671563?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yann Braga</b></sub></a><br /><a href="https://github.com/testing-library/jest-dom/commits?author=yannbf" title="Code">💻</a></td>
13581359
</tr>
13591360
</table>
13601361

src/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import redent from 'redent'
2-
import {parse} from 'css'
2+
import cssParse from 'css/lib/parse'
33
import isEqual from 'lodash/isEqual'
44

55
class GenericTypeError extends Error {
@@ -100,7 +100,7 @@ class InvalidCSSError extends Error {
100100
}
101101

102102
function parseCSS(css, ...args) {
103-
const ast = parse(`selector { ${css} }`, {silent: true}).stylesheet
103+
const ast = cssParse(`selector { ${css} }`, {silent: true}).stylesheet
104104

105105
if (ast.parsingErrors && ast.parsingErrors.length > 0) {
106106
const {reason, line} = ast.parsingErrors[0]

0 commit comments

Comments
 (0)