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
Best for features that should be part of the main test suite. `examples/basic` is mainly used for e2e testing:
17
+
Prefer a runnable app under `examples/<feature>` for substantial end-to-end behavior. Add a corresponding thin test under `e2e/` and cover both development and production build modes when applicable.
21
18
22
-
1. Add your test case files to `examples/basic/src/routes/`
23
-
2. Update the routing in `examples/basic/src/routes/root.tsx`
24
-
3. Add corresponding tests in `e2e/basic.test.ts`
19
+
**Expanding `examples/basic`**
25
20
26
-
**Using `setupInlineFixture` (for specific edge cases)**
27
-
Best for testing specific edge cases or isolated features. See `e2e/ssr-thenable.test.ts` for the pattern.
21
+
Use `examples/basic`, which contains comprehensive test scenarios, when the case is a small extension of the existing application and does not require distinct configuration or framework behavior:
28
22
29
-
<!-- TODO: mention unit test -->
23
+
1. Add the test case files to `examples/basic/src/routes/`.
24
+
2. Update the routing in `examples/basic/src/routes/root.tsx`.
25
+
3. Add corresponding tests in `e2e/basic.test.ts`.
30
26
31
-
## Development Workflow
27
+
**Using `setupInlineFixture`**
28
+
29
+
Use `setupInlineFixture` with `examples/starter` for narrow configuration variants, invalid-input coverage, and cases where a standalone runnable example would add mostly boilerplate. Test projects are written under `examples/e2e/temp/`, with dependencies managed in `examples/e2e/package.json`. See `e2e/ssr-thenable.test.ts` for the pattern.
30
+
31
+
### Unit Tests
32
+
33
+
Use colocated unit tests for self-contained transforms and utilities.
0 commit comments