diff --git a/agents/example-apps.md b/agents/example-apps.md index bfd11c565..fff2edac1 100644 --- a/agents/example-apps.md +++ b/agents/example-apps.md @@ -21,6 +21,7 @@ - `babel.config.js` - `eslint.config.mjs` - `README.md` + - `AGENTS.md` - existing tracked image assets in `assets/` - `.expo-shared/assets.json` if it existed before - Keep the fresh Expo entrypoint `index.ts`. @@ -40,6 +41,7 @@ - `.eslintrc` - `.eslintignore` - `README.md` + - `AGENTS.md` - custom assets not present in the scaffold, such as `assets/gradientRNBanner.png` - existing tracked image assets in `assets/` - `.expo-shared/assets.json` if it existed before diff --git a/examples/basic/AGENTS.md b/examples/basic/AGENTS.md new file mode 100644 index 000000000..5b28cfc58 --- /dev/null +++ b/examples/basic/AGENTS.md @@ -0,0 +1,7 @@ +# React Native Testing Library in this project + +This project uses `@testing-library/react-native`. Its APIs and testing conventions can differ from your training data. +Before writing or changing RNTL tests, read the relevant guide in +`node_modules/@testing-library/react-native/docs/`, starting with +`node_modules/@testing-library/react-native/docs/guides/llm-guidelines.md`. +Prefer those package docs over stale assumptions, and follow deprecation notices. diff --git a/examples/cookbook/AGENTS.md b/examples/cookbook/AGENTS.md new file mode 100644 index 000000000..5b28cfc58 --- /dev/null +++ b/examples/cookbook/AGENTS.md @@ -0,0 +1,7 @@ +# React Native Testing Library in this project + +This project uses `@testing-library/react-native`. Its APIs and testing conventions can differ from your training data. +Before writing or changing RNTL tests, read the relevant guide in +`node_modules/@testing-library/react-native/docs/`, starting with +`node_modules/@testing-library/react-native/docs/guides/llm-guidelines.md`. +Prefer those package docs over stale assumptions, and follow deprecation notices.