Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .cursor/rules/repo-context.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
description: Shared repo context
alwaysApply: true
---

Read `AGENTS.md` first. Treat it as the source of truth for this repo's
commands, invariants, public naming, release constraints, and first-user path.

This file is a thin client adapter for Cursor. Do not add independent strategy,
roadmap, package-name, release, or baseline-scope rules here.
8 changes: 8 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Agent context

Read `AGENTS.md` first. Treat it as the source of truth for this repo's
commands, invariants, public naming, release constraints, and first-user path.

This file is a thin client adapter for GitHub Copilot and VS Code. Do not add
independent strategy, roadmap, package-name, release, or baseline-scope rules
here.
7 changes: 7 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Agent context

Read `AGENTS.md` first. Treat it as the source of truth for this repo's
commands, invariants, public naming, release constraints, and first-user path.

This file is a thin client adapter. Do not add independent strategy, roadmap,
package-name, release, or baseline-scope rules here.
2 changes: 1 addition & 1 deletion README.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
**[create-starter](https://github.com/starter-series/create-starter) 사용** (권장):

```bash
npx @starter-series/create my-app --template react-native
gh repo create my-app --template starter-series/react-native-starter --clone
cd my-app
npm install
npm run check:expo
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Build your app. Push to deploy.
**Via [create-starter](https://github.com/starter-series/create-starter)** (recommended):

```bash
npx @starter-series/create my-app --template react-native
gh repo create my-app --template starter-series/react-native-starter --clone
cd my-app
npm install
npm run check:expo
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
"react-native-web": "~0.19.13"
},
"devDependencies": {
"@testing-library/react-native": "^12.9.0",
"react-test-renderer": "18.3.1",
"@eslint/js": "^10.0.1",
"eslint": "^10.5.0",
"@testing-library/react-native": "^12.9.0",
"eslint": "^10.6.0",
"globals": "^17.7.0",
"jest": "~29.7.0",
"jest-expo": "~52.0.0"
"jest-expo": "~52.0.0",
"react-test-renderer": "18.3.1"
},
"overrides": {
"@babel/core": "7.29.7",
Expand Down
8 changes: 5 additions & 3 deletions tests/auth-context.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ const { assertGoogleEnv, readGoogleClientIds } = require('../lib/env');

function Probe({ onUser }) {
const ctx = useAuth();
onUser(ctx);
onUser?.(ctx);
if (ctx.loading) return <Text>loading</Text>;
return <Text>{ctx.user ? `user:${ctx.user.email}` : 'anon'}</Text>;
}

Expand Down Expand Up @@ -281,8 +282,9 @@ describe('AuthProvider lifecycle', () => {
<Probe onUser={(c) => (captured = c)} />
</AuthProvider>,
);
await waitFor(() => expect(captured.loading).toBe(false), { timeout: 4000 });
expect(captured.user).toBeNull();
await waitFor(() => expect(captured?.loading).toBe(false), { timeout: 4000 });
expect(captured?.loading).toBe(false);
expect(captured?.user).toBeNull();
expect(mockSecureStore.getItemAsync).toHaveBeenCalledWith(STORAGE_KEY);
},
10000,
Expand Down