Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced Karma with Vitest in generated package #187

Merged
merged 6 commits into from
Sep 9, 2024
Merged

Replaced Karma with Vitest in generated package #187

merged 6 commits into from
Sep 9, 2024

Conversation

psmyrek
Copy link
Contributor

@psmyrek psmyrek commented Sep 4, 2024

Suggested merge commit message (convention)

Other (generator): Replaced Karma with Vitest as the testing framework in the generated package.

Other (tools): Removed support for the --coverage (-c) and --source-map (-s) flags.

Other (tools): Removed test script from the tools, because unit tests in the generated package are executed now directly by Vitest.

MINOR BREAKING CHANGE (generator): The generated package no longer uses Karma as the test runner. Instead, Vitest is used.

MINOR BREAKING CHANGE (tools): The test script is removed, because unit tests in the generated package are executed directly by Vitest. Hence, the previous custom support for the --coverage (-c) and --source-map (-s) flags is no longer needed and has been also removed. The yarn run test (or npm run test) script is still available in the generated package, but it executes Vitest. See CLI flags supported in Vitest.


Additional information

Closes https://github.com/cksource/ckeditor5-internal/issues/3756.

Supported scopes

Restored `global document` annotation.
Added description for `--watch` CLI flag.
Limited `vite-plugin-svgo` to version < 1.5.0 that is corrupted right now.
Copy link
Member

@pomek pomek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@psmyrek, I think, we should disable watch by default. When a user wants to develop something, let's force passing the --watch modifier as it was implemented in Karma. WDYT?

@psmyrek
Copy link
Contributor Author

psmyrek commented Sep 4, 2024

Watch mode is now disabled in tests in the generated package. It can be enabled with --watch (-w) flag.

Copy link
Member

@pomek pomek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@psmyrek
Copy link
Contributor Author

psmyrek commented Sep 6, 2024

PR with updates in the CKEditor 5 docs: ckeditor/ckeditor5#17051

@pomek pomek merged commit 7e7c6af into master Sep 9, 2024
14 checks passed
@pomek pomek deleted the ci/3756 branch September 9, 2024 11:40
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.

3 participants