Unverified Commit 8ee0cdf1 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[test] Activity has types and supports react-server (#78066)

parent 73e6565c
...@@ -131,8 +131,8 @@ ...@@ -131,8 +131,8 @@
"@types/jest": "29.5.5", "@types/jest": "29.5.5",
"@types/node": "20.17.6", "@types/node": "20.17.6",
"@types/node-fetch": "2.6.1", "@types/node-fetch": "2.6.1",
"@types/react": "19.0.8", "@types/react": "19.1.1",
"@types/react-dom": "19.0.3", "@types/react-dom": "19.1.2",
"@types/relay-runtime": "14.1.13", "@types/relay-runtime": "14.1.13",
"@types/string-hash": "1.1.1", "@types/string-hash": "1.1.1",
"@types/trusted-types": "2.0.3", "@types/trusted-types": "2.0.3",
...@@ -287,8 +287,8 @@ ...@@ -287,8 +287,8 @@
"@babel/parser": "7.22.5", "@babel/parser": "7.22.5",
"@babel/types": "7.22.5", "@babel/types": "7.22.5",
"@babel/traverse": "7.22.5", "@babel/traverse": "7.22.5",
"@types/react": "19.0.8", "@types/react": "^19.1.1",
"@types/react-dom": "19.0.3", "@types/react-dom": "19.1.2",
"jest-snapshot": "30.0.0-alpha.6", "jest-snapshot": "30.0.0-alpha.6",
"react": "19.2.0-canary-1d6c8168-20250411", "react": "19.2.0-canary-1d6c8168-20250411",
"react-dom": "19.2.0-canary-1d6c8168-20250411", "react-dom": "19.2.0-canary-1d6c8168-20250411",
......
This diff is collapsed.
'use client'
// TODO: "use client" is required in this module because Activity is not
// exported from the server entrypoint of React
// @ts-expect-error: Not yet part of the TypeScript types
import { unstable_Activity as Activity } from 'react' import { unstable_Activity as Activity } from 'react'
export default function Page() { export default function Page() {
......
...@@ -207,8 +207,8 @@ export class NextInstance { ...@@ -207,8 +207,8 @@ export class NextInstance {
const finalDependencies = { const finalDependencies = {
react: reactVersion, react: reactVersion,
'react-dom': reactVersion, 'react-dom': reactVersion,
'@types/react': 'latest', '@types/react': '^19.1.1',
'@types/react-dom': 'latest', '@types/react-dom': '^19.1.2',
typescript: 'latest', typescript: 'latest',
'@types/node': 'latest', '@types/node': 'latest',
...this.dependencies, ...this.dependencies,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment