mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
858 B
858 B
Build, Validation, And Repo Layout
Common commands
- Install dependencies:
yarn install - Run tests:
yarn test - Run tests in CI mode:
yarn test:ci - Type check:
yarn typecheck - Lint source files:
yarn lint - Check formatting:
yarn format:check - Validate the main package:
yarn validate - Build the package:
yarn build
Command notes
yarn lintruns ESLint onsrc.yarn validateruns typecheck, tests, lint, and oxfmt checks for the main package.yarn buildcleansdist/, transpiles source with Babel, and emits TypeScript declarations.
Repo layout
src/: source codesrc/pure.ts: core logic without side effectssrc/index.ts: main entry point with auto-cleanup side effectsexamples/: example React Native appswebsite/: documentation sitecodemods/: codemod implementations and tests