Skip to content

1748 support typescript exam projects with bundling step before running mochasinon tests#1671

Merged
Vox94 merged 3 commits into
v2-developmentfrom
1748-support-typescript-exam-projects-with-bundling-step-before-running-mochasinon-tests
Dec 22, 2025
Merged

1748 support typescript exam projects with bundling step before running mochasinon tests#1671
Vox94 merged 3 commits into
v2-developmentfrom
1748-support-typescript-exam-projects-with-bundling-step-before-running-mochasinon-tests

Conversation

@gogo4ds
Copy link
Copy Markdown
Collaborator

@gogo4ds gogo4ds commented Dec 10, 2025

Closes https://github.com/SoftUni-Internal/exam-systems-issues/issues/1748

Summary of the changes made:

  1. {Describe your changes in the list}

- Introduce `TypeScriptProjectMochaUnitTestsExecutionStrategy` to handle TypeScript projects with Mocha unit tests.
- Add new execution strategy type `TypeScriptV20ProjectMochaUnitTestsExecutionStrategy`.
- Update `ExecutionStrategyFactory` and `ExecutionStrategySettingsProvider` to support the new strategy.
- Include `esbuild` dependency in `package.json`.
- Add `ESBuildModulePath` to appsettings.json for execution context.
…endencies

- Replace `NodeJsPreprocessExecuteAndRunUnitTestsWithMochaExecutionStrategySettings` with `TypeScriptProjectMochaUnitTestsExecutionStrategySettings`.
- Refactor `ExecutionStrategyFactory` and `ExecutionStrategySettingsProvider` to use newly introduced settings.
- Add `EsBuildModulePath` to configuration and execution pathways.
- Remove unused `ICompilerFactory` dependency from `TypeScriptProjectMochaUnitTestsExecutionStrategy`.
- Update `ExecutionStrategyFactory` to reflect the updated constructor.
- Use `FileHelpers` for file path construction and content reading in execution logic.
- Refactor result handling in execution to improve clarity.
@Vox94 Vox94 merged commit bbb8233 into v2-development Dec 22, 2025
8 checks passed
@Vox94 Vox94 deleted the 1748-support-typescript-exam-projects-with-bundling-step-before-running-mochasinon-tests branch December 22, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants