Skip to content

Commit d61ba69

Browse files
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" flag
1 parent fdb260c commit d61ba69

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
tests/test_utils/ \
3838
tests/test_model_training/test_problem_detector.py \
3939
tests/test_model_training/test_feature_engineer.py \
40+
-m "not integration" \
4041
--cov=app \
4142
--cov-report=xml \
4243
--cov-report=term-missing \

apps/frontend/jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const customJestConfig = {
1818
testPathIgnorePatterns: [
1919
'<rootDir>/node_modules/',
2020
'<rootDir>/.next/',
21+
'<rootDir>/e2e/', // Exclude Playwright E2E tests from Jest
2122
],
2223
collectCoverageFrom: [
2324
'components/**/*.{ts,tsx}',

0 commit comments

Comments
 (0)