-
Notifications
You must be signed in to change notification settings - Fork 101
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
test(ui-codemods): migrate old Codemods tests #1632
test(ui-codemods): migrate old Codemods tests #1632
Conversation
|
7f7594c
to
7cf5f6b
Compare
…ook to transform ts files to js Closes: INSTUI-4126 Pirates hook transform is a necessary workaround because vitest does not support importing ts files with `require`.
7cf5f6b
to
859bfb0
Compare
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.
very nice work!
@@ -20,7 +20,7 @@ jobs: | |||
- name: Set up project. | |||
run: npm run bootstrap | |||
- name: Run tests. | |||
run: USE_REACT_STRICT_MODE=0 npm run test && npm run test:vitest && npm run test:jest && npm run cy:component | |||
run: USE_REACT_STRICT_MODE=0 npm run test && npm run test:vitest && npm run cy:component |
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.
we still have 1 Jest
test suite in the ui
package, but that will be converted to vitest
next, so its OK that those tests are not running for a few builds.
addHook(transformCode, { | ||
exts: ['.ts', '.tsx'], | ||
ignoreNodeModules: true | ||
}) |
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.
We are never unloading this hook. I guess its fine since tests are isolated https://vitest.dev/config/#isolate by default
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.
Yes, this is not an issue, we are running these tests separately from others.
Closes: INSTUI-4126