Commit d61ba69
committed
fix(ci): exclude integration tests and e2e tests from unit test workflows
Fixed unit test workflow failures by properly separating unit tests from
integration and E2E tests.
Frontend Fix:
- Added e2e/ directory to Jest testPathIgnorePatterns
- Prevents Jest from running Playwright E2E tests
- Fixes "TransformStream is not defined" errors
- Jest now only runs actual unit tests in __tests__/ directories
Backend Fix:
- Added -m "not integration" marker to pytest command
- Excludes integration tests requiring MongoDB from unit test workflow
- Prevents pymongo.errors.ServerSelectionTimeoutError in CI
- Unit tests (190 tests) now run without database dependencies
- Integration tests (9 tests in test_upload_handler.py) run separately
Result:
- Frontend unit tests: 9 tests (DataPreviewTable, SchemaViewer, etc.)
- Backend unit tests: 170 tests (down from 179, excluding 9 integration)
- Integration tests remain available in separate workflow
- E2E tests remain available in separate workflow
Files Changed:
- apps/frontend/jest.config.js: Added e2e/ to testPathIgnorePatterns
- .github/workflows/unit-tests.yml: Added -m "not integration" flag1 parent fdb260c commit d61ba69
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments