Active
Project:
Drupal core
Version:
main
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2021 at 11:34 UTC
Updated:
4 Nov 2021 at 11:34 UTC
Jump to comment: Most recent
We have some documentation that explains how to run unit tests with Nightwatch https://www.drupal.org/docs/automated-testing/javascript-testing-using-n.... However, with CKEditor 5, we are using ES Modules. It would be useful to be able to test some of the code using our Nightwatch testing, but at the moment it seems like it's something that's very hard to achieve because of Cannot use import statement outside a module errors.
Document how to use Nightwatch for unit testing code using ESM.
Comments