Skip to content

Commit d0f7ca4

Browse files
committed
refactor: reorganize tests into unit and e2e directories (#491)
# Reorganize Test Directory Structure for Better Separation of Unit and E2E Tests This PR reorganizes the test directory structure to clearly separate unit tests from end-to-end tests: - Moved all integration tests from `__tests__/integration/` to `__tests__/e2e/` - Relocated unit tests from the root `__tests__/` directory to `__tests__/unit/` - Updated import paths in test files to reflect the new directory structure - Created a separate Vitest configuration for E2E tests (`vitest.e2e.config.ts`) - Renamed `vitest.global-setup.ts` to `vitest.e2e.global-setup.ts` to clarify its purpose - Updated the project.json configuration to use the appropriate test commands for each test type This change improves the organization of our test suite and makes it clearer which tests are unit tests and which are end-to-end tests, while maintaining all existing test functionality.
1 parent ae4d2b9 commit d0f7ca4

31 files changed

Lines changed: 81 additions & 70 deletions

pkgs/client/__tests__/integration/concurrent-operations.test.ts renamed to pkgs/client/__tests__/e2e/concurrent-operations.test.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pkgs/client/__tests__/integration/input-validation.test.ts renamed to pkgs/client/__tests__/e2e/input-validation.test.ts

File renamed without changes.

pkgs/client/__tests__/integration/network-resilience.test.ts renamed to pkgs/client/__tests__/e2e/network-resilience.test.ts

File renamed without changes.

pkgs/client/__tests__/integration/real-flow-execution.test.ts renamed to pkgs/client/__tests__/e2e/real-flow-execution.test.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.

pkgs/client/__tests__/integration/regressions/step-failed-event-bug.test.ts renamed to pkgs/client/__tests__/e2e/regressions/step-failed-event-bug.test.ts

File renamed without changes.

0 commit comments

Comments
 (0)