rbin-task-flow 1.18.0 → 1.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -64,7 +64,7 @@ In **front web** (Next.js, React) or **mobile** (Expo, React Native) projects, e
|
|
|
64
64
|
- **Forms**: `react-hook-form` + `zod` + `@hookform/resolvers/zod`
|
|
65
65
|
- **Notifications**: `sonner`
|
|
66
66
|
- **ESLint**: `@rbinflow/eslint-config`
|
|
67
|
-
- **E2E Testing**:
|
|
67
|
+
- **E2E Testing**: Cypress or equivalent browser E2E tooling
|
|
68
68
|
|
|
69
69
|
### Mobile (Expo / React Native)
|
|
70
70
|
- **Framework**: Expo with Expo Router, or React Native (bare or managed). These rules apply to both Expo and React Native.
|
|
@@ -800,42 +800,11 @@ export const useAuth = () => useContext(AuthContext)
|
|
|
800
800
|
## Testing
|
|
801
801
|
|
|
802
802
|
### Front-end (Next.js / React)
|
|
803
|
-
- **E2E**:
|
|
803
|
+
- **E2E**: Cypress or equivalent browser E2E tooling
|
|
804
804
|
- Tests live in `e2e/` or `cypress/` at project root
|
|
805
|
-
- Test files
|
|
805
|
+
- Test files should follow the tool convention in use consistently
|
|
806
806
|
- Cover critical user flows: auth, main feature interactions, form submissions
|
|
807
807
|
|
|
808
|
-
### Playwright — single root folder (e2e/)
|
|
809
|
-
|
|
810
|
-
Do **not** create `playwright-report/` or `test-results/` at project root. Use **only** `e2e/` at root; put all Playwright outputs inside it:
|
|
811
|
-
|
|
812
|
-
- **`e2e/`** — tests, helpers, and outputs (single folder at root)
|
|
813
|
-
- **`e2e/.results/`** — test artifacts (traces, screenshots; replaces default `test-results/`)
|
|
814
|
-
- **`e2e/.report/`** — HTML report (replaces default `playwright-report/`)
|
|
815
|
-
|
|
816
|
-
**playwright.config.ts:**
|
|
817
|
-
|
|
818
|
-
```typescript
|
|
819
|
-
import { defineConfig } from '@playwright/test'
|
|
820
|
-
|
|
821
|
-
export default defineConfig({
|
|
822
|
-
testDir: './e2e',
|
|
823
|
-
outputDir: './e2e/.results',
|
|
824
|
-
fullyParallel: true,
|
|
825
|
-
forbidOnly: !!process.env.CI,
|
|
826
|
-
retries: process.env.CI ? 2 : 0,
|
|
827
|
-
workers: process.env.CI ? 1 : undefined,
|
|
828
|
-
reporter: [['html', { outputFolder: './e2e/.report' }]],
|
|
829
|
-
use: {
|
|
830
|
-
baseURL: 'http://localhost:3000',
|
|
831
|
-
trace: 'on-first-retry',
|
|
832
|
-
// ...
|
|
833
|
-
},
|
|
834
|
-
})
|
|
835
|
-
```
|
|
836
|
-
|
|
837
|
-
**.gitignore:** add `e2e/.results/` and `e2e/.report/` so outputs stay untracked. The leading `.` keeps the folders collapsed in the editor.
|
|
838
|
-
|
|
839
808
|
### Mobile (Expo / React Native)
|
|
840
809
|
- **E2E**: Detox
|
|
841
810
|
- Tests live in `e2e/` at project root
|
|
@@ -53,7 +53,7 @@ For each category below, rate adherence: **Full / Partial / Missing**
|
|
|
53
53
|
| TypeScript strictness (no `any`) | | |
|
|
54
54
|
| `DataHandler` pattern (or equivalent) | | |
|
|
55
55
|
| Providers composition | | |
|
|
56
|
-
| E2E tests (
|
|
56
|
+
| E2E tests (Cypress/Detox or equivalent) | | |
|
|
57
57
|
|
|
58
58
|
### Step 3 — Present findings clearly
|
|
59
59
|
|
|
@@ -146,7 +146,7 @@ Medium effort:
|
|
|
146
146
|
|
|
147
147
|
Larger effort:
|
|
148
148
|
- [ ] Introduce `features/` structure for new features going forward
|
|
149
|
-
- [ ] Add E2E tests with
|
|
149
|
+
- [ ] Add E2E tests with Cypress or an equivalent tool
|
|
150
150
|
|
|
151
151
|
Which would you like me to generate tasks for?
|
|
152
152
|
```
|