Fix CLI tests#8054
Merged
deleonio merged 1 commit intofeature/einrichten-von-tests-fur-migrationstasksfrom Jul 17, 2025
Merged
Conversation
Contributor
|
Netlify Draft Deployment |
Contributor
Hydration Benchmark Report (vs Baseline)✅ Top 5 Improvements (Best Speedups)
🔻 Flop 5 Regressions (Worst Slowdowns)
📋 Show all results
|
681270b
into
feature/einrichten-von-tests-fur-migrationstasks
8 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the test suite for the
kolibri-clipackage by replacingimportstatements withrequirefor dynamic imports, fixing type issues, and refining test logic. The changes improve compatibility with TypeScript and enhance test robustness.Dynamic Import Adjustments:
importstatements withrequirefor modules liketyped-bemandchild_processin test files to align with dynamic import requirements. Additionally, added type assertions (e.g.,(childProc as any)) to resolve type compatibility issues. ([[1]](https://github.com/public-ui/kolibri/pull/8054/files#diff-43c2c697e00052437a19b2faa0283bbf06768b62c65dd6ef6f525bfab54ead45L18-R18),[[2]](https://github.com/public-ui/kolibri/pull/8054/files#diff-43c2c697e00052437a19b2faa0283bbf06768b62c65dd6ef6f525bfab54ead45R55-R57),[[3]](https://github.com/public-ui/kolibri/pull/8054/files#diff-a4a58d9e078975eb0c6b61f8b44ccae2400875a0da46e356ae91280f83da0dc6L6-R17),[[4]](https://github.com/public-ui/kolibri/pull/8054/files#diff-58987e1ea84538c50872f46febb8b7ba89a73d168a9a35a7206518edbf012e30L7-R15),[[5]](https://github.com/public-ui/kolibri/pull/8054/files#diff-f76ea754f21f5e34a97c42b467a919c8d2eff5a47127cd7f6a3e353e2d5f0644R5-R24))Test Logic Refinements:
JsonTaskandTsConfigReconfigureTasktests to correctly pass nested object structures in their configurations. ([[1]](https://github.com/public-ui/kolibri/pull/8054/files#diff-5bc45b3656bc874217ec75bf3ca0c7bcb208781cc1d0093f80001e2dbaaf8824L14-R14),[[2]](https://github.com/public-ui/kolibri/pull/8054/files#diff-f1c5ffdd4c9403ddc0fdb7e62ff93b00c75a34ee6cd4c2e01d280bc3a38d48c2L14-R14))RenameSlotNameTasktest to clarify that only component files are processed, leaving HTML files unchanged. ([packages/tools/kolibri-cli/test/rename-slot.spec.tsL21-R22](https://github.com/public-ui/kolibri/pull/8054/files#diff-0a66b59d05a9a7aab7bcd6f74c91249a39656afc953a2fd20ee110fc8e630e9fL21-R22))