Skip to content

Commit 00ffa44

Browse files
committed
Use React 19
1 parent 3225ece commit 00ffa44

File tree

26 files changed

+145
-296
lines changed

26 files changed

+145
-296
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@ jobs:
4141
- name: Check Types
4242
run: yarn tsc:all
4343

44-
test_react18:
45-
name: Test React 18
46-
runs-on: ubuntu-latest
47-
steps:
48-
- uses: actions/checkout@v3
49-
- uses: ./.github/actions/ci-setup
50-
51-
- name: Run Tests with React 18
52-
run: yarn test:react18:ci
53-
5444
test_prod:
5545
name: Test Prod
5646
runs-on: ubuntu-latest

jest-react18.config.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
"test:size": "npm-run-all build size",
1010
"test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand --watch",
1111
"test": "jest",
12-
"test:react18": "jest -c jest-react18.config.js",
1312
"test:typescript": "yarn workspaces foreach --verbose --exclude emotion-monorepo run test:typescript",
1413
"test:ci": "jest --coverage --no-cache --ci --runInBand",
15-
"test:react18:ci": "yarn test:react18 --coverage --no-cache --ci --runInBand",
1614
"test:dist": "yarn build && jest -c jest.dist.js --no-cache --ci --runInBand",
1715
"test:prod": "jest -c jest.prod.js --no-cache --ci --runInBand",
1816
"lint:check": "eslint .",
@@ -188,7 +186,7 @@
188186
"@testing-library/react": "13.0.0-alpha.5",
189187
"@types/jest": "^29.5.12",
190188
"@types/node": "^12.20.37",
191-
"@types/react": "18.3.12",
189+
"@types/react": "19.0.1",
192190
"@typescript-eslint/eslint-plugin": "^7.13.0",
193191
"@typescript-eslint/parser": "^7.13.0",
194192
"babel-check-duplicated-nodes": "^1.0.0",
@@ -229,14 +227,11 @@
229227
"polished": "^1.2.1",
230228
"prettier": "^3.3.2",
231229
"raf": "^3.4.0",
232-
"react": "16.14.0",
233-
"react-dom": "16.14.0",
230+
"react": "19.0.0",
231+
"react-dom": "19.0.0",
234232
"react-native": "^0.63.2",
235233
"react-primitives": "^0.8.1",
236-
"react-test-renderer": "16.8.6",
237-
"react18": "npm:react@18.0.0-rc.0-next-aa8f2bdbc-20211215",
238-
"react18-dom": "npm:react-dom@18.0.0-rc.0-next-aa8f2bdbc-20211215",
239-
"react18-test-renderer": "npm:react-test-renderer@18.0.0-rc.0-next-aa8f2bdbc-20211215",
234+
"react-test-renderer": "19.0.0",
240235
"svg-tag-names": "^1.1.1",
241236
"through": "^2.3.8",
242237
"typescript": "^5.4.5",

packages/jest/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
"@types/jest": "^29.5.12",
8282
"enzyme-to-json": "^3.6.1",
8383
"pretty-format": "^22.4.3",
84-
"react": "16.14.0",
85-
"react-dom": "16.14.0",
84+
"react": "19.0.0",
85+
"react-dom": "19.0.0",
8686
"typescript": "^5.4.5"
8787
},
8888
"author": "Kye Hohenberger",

packages/jest/test/printer.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('jest-emotion with dom elements', () => {
3838
expect(output).toMatchSnapshot()
3939
})
4040

41-
test.skip('replaces class names and inserts styles into DOM element snapshots', () => {
41+
test('replaces class names and inserts styles into DOM element snapshots', () => {
4242
const divRef = React.createRef()
4343
render(
4444
<div css={divStyle} ref={divRef}>
@@ -81,7 +81,7 @@ describe('jest-emotion with DOM elements disabled', () => {
8181
expect(output).toMatchSnapshot()
8282
})
8383

84-
test.skip('does not replace class names or insert styles into DOM element snapshots', () => {
84+
test('does not replace class names or insert styles into DOM element snapshots', () => {
8585
const divRef = React.createRef()
8686
render(
8787
<div css={divStyle} ref={divRef}>
@@ -97,7 +97,7 @@ describe('jest-emotion with DOM elements disabled', () => {
9797
})
9898
})
9999

100-
test.skip('allows to opt-out from styles printing', () => {
100+
test('allows to opt-out from styles printing', () => {
101101
const emotionPlugin = createSerializer({ includeStyles: false })
102102

103103
const divStyle = css`

packages/native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"devDependencies": {
3737
"@definitelytyped/dtslint": "0.0.112",
3838
"@types/react-native": "^0.63.2",
39-
"react": "16.14.0",
39+
"react": "19.0.0",
4040
"react-native": "^0.63.2",
4141
"typescript": "^5.4.5"
4242
},

packages/primitives-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
},
1616
"peerDependencies": {
1717
"@emotion/react": "^11.0.0-rc.0",
18-
"react": ">=16.8.0"
18+
"react": "^19.0.0"
1919
},
2020
"devDependencies": {
2121
"@emotion/react": "11.14.0",
2222
"@types/css-to-react-native": "^3.0.0",
23-
"react": "16.14.0"
23+
"react": "19.0.0"
2424
},
2525
"homepage": "https://emotion.sh",
2626
"repository": "https://github.com/emotion-js/emotion/tree/main/packages/primitives-core",

packages/primitives/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"@emotion/primitives-core": "^11.13.0"
1515
},
1616
"peerDependencies": {
17-
"react": ">=16.8.0",
17+
"react": "^19.0.0",
1818
"react-primitives": "^0.8.1"
1919
},
2020
"devDependencies": {
2121
"enzyme": "^3.11.0",
2222
"enzyme-adapter-react-16": "^1.15.5",
23-
"react": "16.14.0",
23+
"react": "19.0.0",
2424
"react-primitives": "^0.8.1"
2525
},
2626
"homepage": "https://emotion.sh",

packages/primitives/test/emotion-primitives.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('Emotion primitives', () => {
122122
expect(tree).toMatchSnapshot()
123123
})
124124

125-
test.skip('ref', () => {
125+
test('ref', () => {
126126
const StyledText = styled.Text`
127127
color: hotpink;
128128
`

packages/react/__tests__/ref.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { render, cleanup } from '@testing-library/react'
55

66
afterEach(cleanup)
77

8-
test.skip('ref works', () => {
8+
test('ref works', () => {
99
let ref = React.createRef()
1010
let { getByTestId } = render(
1111
<div data-testid="test" css={{ color: 'hotpink' }} ref={ref} />

0 commit comments

Comments
 (0)