Files
react-native/packages/helloworld/package.json
Alex HuntandFacebook GitHub Bot c937439e87 Add a basic Jest test to helloworld (#51534)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51534

Aims to give us CI coverage of React Native's Jest preset, preventing future bugs like https://github.com/facebook/react-native/pull/51525.

Changes:
- Add a basic "it renders" Jest test to helloworld
- Add "Run Helloworld tests" step to `test-ios-helloworld` job in CI
- Also convert helloworld's `App.tsx` to TypeScript, as easiest way to unblock Jest JSX behaviour.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D75218901

fbshipit-source-id: 601155c59c4483696971df4c29d51549d97f49f2
2025-05-22 09:44:15 -07:00

40 lines
1.0 KiB
JSON

{
"name": "helloworld",
"version": "0.80.0-main",
"private": true,
"scripts": {
"bootstrap": "node ./cli.js bootstrap",
"build": "node ./cli.js build",
"bundle": "node ./cli.js bundle ",
"install-and-run": "node ./cli.js install-and-run",
"launch": "node ./scripts/metro.js",
"lint": "eslint .",
"test": "jest"
},
"dependencies": {
"react": "19.1.0",
"react-native": "1000.0.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native/babel-preset": "0.80.0-main",
"@react-native/core-cli-utils": "0.80.0-main",
"@react-native/eslint-config": "0.80.0-main",
"@react-native/metro-config": "0.80.0-main",
"@react-native/typescript-config": "0.80.0-main",
"@types/jest": "^29.5.14",
"chalk": "^4.1.2",
"commander": "^12.0.0",
"eslint": "^8.19.0",
"jest": "^29.7.0",
"listr2": "^8.2.1",
"react-test-renderer": "19.1.0",
"rxjs": "^7.8.1"
},
"engines": {
"node": ">=18"
}
}