Skip to content

Commit a7e32ff

Browse files
committed
chore: fix tests
1 parent c255d5e commit a7e32ff

File tree

4 files changed

+15
-21
lines changed

4 files changed

+15
-21
lines changed

jest.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
testEnvironment: 'jsdom',
23
transformIgnorePatterns: ['<rootDir>.*(node_modules)(?!.*@xstyled.*).*$'],
34
transform: {
45
'^.+\\.(j|t)sx?$': 'babel-jest',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@emotion/serialize": "^1.0.2",
2424
"@emotion/styled": "^11.3.0",
2525
"@testing-library/jest-dom": "^5.14.1",
26-
"@testing-library/react": "^11.2.7",
26+
"@testing-library/react": "12.0.0-alpha.2",
2727
"@types/react": "^17.0.11",
2828
"@types/styled-components": "^5.1.10",
2929
"@typescript-eslint/eslint-plugin": "^4.27.0",

packages/system/src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as CSS from 'csstype'
22
import type { ITheme, Props } from '@xstyled/util'
33

4-
export { ITheme, Props }
4+
export type { ITheme, Props }
55

66
export type CSSProperties = CSS.Properties<string | number>
77

yarn.lock

+12-19
Original file line numberDiff line numberDiff line change
@@ -5436,19 +5436,19 @@ __metadata:
54365436
languageName: node
54375437
linkType: hard
54385438

5439-
"@testing-library/dom@npm:^7.28.1":
5440-
version: 7.30.0
5441-
resolution: "@testing-library/dom@npm:7.30.0"
5439+
"@testing-library/dom@npm:^8.0.0-alpha.6":
5440+
version: 8.0.0-alpha.6
5441+
resolution: "@testing-library/dom@npm:8.0.0-alpha.6"
54425442
dependencies:
54435443
"@babel/code-frame": ^7.10.4
54445444
"@babel/runtime": ^7.12.5
54455445
"@types/aria-query": ^4.2.0
54465446
aria-query: ^4.2.2
54475447
chalk: ^4.1.0
5448-
dom-accessibility-api: ^0.5.4
5448+
dom-accessibility-api: ^0.5.6
54495449
lz-string: ^1.4.4
5450-
pretty-format: ^26.6.2
5451-
checksum: 5af9f762ff43265cf9c36bb62bba37d73da2858a6149a2f11f159c61bfb46d60f66d9c7c10ab9f201cf0749c9e0039494005379355b0a0d494c60f6b759cea34
5450+
pretty-format: ^27.0.2
5451+
checksum: f39cd840113e1e10ee6c0ba91203d76ea89ada29d18037b6122d2e29b27d153aa158fd3d54fe997f53742a20613230fafcab3d4411db862c0165efb3a4e5398b
54525452
languageName: node
54535453
linkType: hard
54545454

@@ -5469,16 +5469,16 @@ __metadata:
54695469
languageName: node
54705470
linkType: hard
54715471

5472-
"@testing-library/react@npm:^11.2.7":
5473-
version: 11.2.7
5474-
resolution: "@testing-library/react@npm:11.2.7"
5472+
"@testing-library/react@npm:12.0.0-alpha.2":
5473+
version: 12.0.0-alpha.2
5474+
resolution: "@testing-library/react@npm:12.0.0-alpha.2"
54755475
dependencies:
54765476
"@babel/runtime": ^7.12.5
5477-
"@testing-library/dom": ^7.28.1
5477+
"@testing-library/dom": ^8.0.0-alpha.6
54785478
peerDependencies:
54795479
react: "*"
54805480
react-dom: "*"
5481-
checksum: 389c9f3e83f59677f5283783788d18f8cd499342a0e5c1f67821c292860afe5f282ff8b5ced795b9c2f7d78132005d8b6b33e1b3e3a9004e240e3569f8e168ef
5481+
checksum: 02557642c5ebedf40b5d692ae6d87d50ff6d4327d9530095b80dc9ed16db84175990b71c9a9c3ba782d46cfba02e75dfafe9dba590f12f726cd590b55c2b9d92
54825482
languageName: node
54835483
linkType: hard
54845484

@@ -10882,13 +10882,6 @@ __metadata:
1088210882
languageName: node
1088310883
linkType: hard
1088410884

10885-
"dom-accessibility-api@npm:^0.5.4":
10886-
version: 0.5.4
10887-
resolution: "dom-accessibility-api@npm:0.5.4"
10888-
checksum: 39351d26a3732312f14411effef698204bf6c79a7d5eb0664441897541243f2cdf2e508aca52684ccf3b10df6708a6c265d1fde323eebcb8363a1093f5927b10
10889-
languageName: node
10890-
linkType: hard
10891-
1089210885
"dom-accessibility-api@npm:^0.5.6":
1089310886
version: 0.5.6
1089410887
resolution: "dom-accessibility-api@npm:0.5.6"
@@ -22786,7 +22779,7 @@ resolve@^2.0.0-next.3:
2278622779
"@emotion/serialize": ^1.0.2
2278722780
"@emotion/styled": ^11.3.0
2278822781
"@testing-library/jest-dom": ^5.14.1
22789-
"@testing-library/react": ^11.2.7
22782+
"@testing-library/react": 12.0.0-alpha.2
2279022783
"@types/react": ^17.0.11
2279122784
"@types/styled-components": ^5.1.10
2279222785
"@typescript-eslint/eslint-plugin": ^4.27.0

0 commit comments

Comments
 (0)