-
Notifications
You must be signed in to change notification settings - Fork 26
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
Converted the ckeditor5-dev-ci
package to ESM
#997
Conversation
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.
I left a few comments that should be addressed before merging.
import { defineConfig } from 'vitest/config'; | ||
|
||
export default defineConfig( { | ||
test: { |
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.
For now this is fine, but if we are going to rewrite other packages, we need to store the config in a common place.
|
||
describe( 'lib/utils/getJobApprover', () => { | ||
let stubs, getJobApprover; |
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.
This looks pretty awesome. I like that in Vitest all of this bloated code is not needed.
ckeditor5-dev-ci
package to ESM
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.
ESM requires extensions in import
/export
when operating on local files. You can fix it by updating ESLint rules.
Lines 28 to 33 in 281aaea
'ckeditor5-rules/require-file-extensions-in-imports': [ | |
'error', | |
{ | |
extensions: [ '.ts', '.js', '.json' ] | |
} | |
] |
Suggested merge commit message (convention)
Internal (ci): Converted the package to ESM.
Additional information
For example – encountered issues, assumptions you had to make, other affected tickets, etc.