-
Notifications
You must be signed in to change notification settings - Fork 221
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
(refactor) Refactor test setup to leverage caching by turbo
#764
Conversation
Size Change: +9 B (0%) Total Size: 2.12 MB ℹ️ View Unchanged
|
6e15167
to
fbf382d
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.
Everything else looks good!
Just doubtful that adding Layer is okay to add in here.
Thanks!
packages/esm-appointments-app/src/admin/appointment-services/appointment-services.component.tsx
Show resolved
Hide resolved
db347e8
to
f218709
Compare
This looks good to me, although, I probably look more later. I'm actually ok with having a |
The patient chart PR revealed an issue with using a single jest config at the root of the project and referencing it in all the child packages' test script as the argument to |
0116868
to
2ff396d
Compare
Requirements
Summary
This PR refactors the test setup in this monorepo to leverage the caching capabilities of
turbo
. The current setup does properly leverageturbo
for the following reasons:test
scripts in the root-levelpackage.json
to run tests across the entire monorepo. As such, all the tests get re-run regardless of whether the associated files changed.Ideally, we would like to leverage caching when executing tests. This PR introduces exactly that by moving testing-related scripts from the root-level
package.json
to eachpackage.json
file of each package. Additionally, this PR also:__mocks__
directory to package-specific__mocks__
directories. This step also involves moving shared mocks to thetest-helpers
file.With these changes, we can now fully leverage caching when running tests.
Video
test-caching-turbo.mp4
Related Issue
None
Other
None