-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
Restored `global document` annotation.
Added description for `--watch` CLI flag.
Limited `vite-plugin-svgo` to version < 1.5.0 that is corrupted right now.
There was a problem hiding this 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?
Watch mode is now disabled in tests in the generated package. It can be enabled with |
packages/ckeditor5-package-generator/lib/templates/js/vitest.config.ts.txt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
PR with updates in the CKEditor 5 docs: ckeditor/ckeditor5#17051 |
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. Theyarn run test
(ornpm 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
generator
→ https://www.npmjs.com/package/ckeditor5-package-generator*
→ https://www.npmjs.com/package/@ckeditor/ckeditor5-package-*