You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* docs(config): add cursor cloud specific instructions to AGENTS.md
* docs(AGENTS): update development instructions in AGENTS.md for clarity and best practices
* docs(AGENTS): expand development instructions in AGENTS.md with detailed quick start guide, module aliases, and troubleshooting tips
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+99-33Lines changed: 99 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,59 +1,120 @@
1
1
# Compass Calendar Development Instructions
2
2
3
-
Always reference these instructions first and fallback to search or bash commands only when you encounter unexpected information that does not match the info here.
3
+
Primary instructions for AI agents and developers in the Compass monorepo.
4
+
5
+
## Quick Start
6
+
7
+
1.`yarn install --frozen-lockfile --network-timeout 300000` (takes ~3.5 min, do not cancel)
-**CRITICAL**: The backend requires external service credentials (Google OAuth, Supertokens, MongoDB) to run properly
22
-
-**Web Development** (RECOMMENDED for coding):
23
-
-`yarn dev:web` - Takes ~10 seconds to build. Serves on <http://localhost:9080/>
83
+
-**Web Development**:
84
+
- yarn dev:web - Takes ~10 seconds to build. Serves on http://localhost:9080/
24
85
- Frontend works standalone without backend services
25
-
-**Backend Development** (requires full setup):
86
+
-**Backend Development**:
26
87
-`yarn dev:backend` - Fails without proper .env configuration
27
-
- Needs: Google Cloud OAuth credentials, Supertokens account, MongoDB connection
28
88
29
89
### Testing
30
90
31
-
### Writing Tests in `@compass/web`
91
+
Run `yarn test:core`, `yarn test:web`, and `yarn test:backend` after making changes. Use `yarn test:scripts` for scripts package tests. Avoid `yarn test` (full suite) in restricted network environments—MongoDB binary download may fail.
92
+
93
+
#### Writing Tests in `@compass/web`
32
94
33
95
- Write tests the way a user would use the application by using the DOM and user interactions with `@testing-library/user-event` rather than internal implementation details of React components.
34
96
- Do NOT use `data-` attributes or CSS selectors to locate elements. Use semantic locators and roles instead.
35
97
- When writing tests, avoid mocking as much as possible.
36
98
- Where mocking is inevitable, use spies to sub out specific module functions before attempting to mock the whole module.
99
+
-**DO NOT** attempt to test login functionality without proper backend setup.
0 commit comments