ckeditor / ckeditor5-package-generator

A tool for creating a new package for CKEditor 5.
Other
6 stars 9 forks source link

Replaced Karma with Vitest in generated package #187

Closed psmyrek closed 2 months ago

psmyrek commented 2 months ago

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

psmyrek commented 2 months ago

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

pomek commented 2 months ago

@psmyrek, should we update CKEditor 5 docs?

psmyrek commented 2 months ago

PR with updates in the CKEditor 5 docs: https://github.com/ckeditor/ckeditor5/pull/17051