-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Move composite-checkout-wpcom into client/lib #37729
Conversation
08fbe7e
to
9ff92a3
Compare
This test is failing because So there are a few things we could try. The first thing IMO would be to look into the source code for |
Moving this package into calypso so we get hot reloading during development. It may or may not make sense to move some of this out of calypso later, particularly the parts that are tightly bound to the billing backend.
9ff92a3
to
09a11d3
Compare
The demo webpack config still references |
Is it necessary to have a webpack config apart from the demo? Is it used? How about the TS config? I'm not really sure how this directory gets used as a library. We can probably remove the |
🤔 My suggestion is to remove the demo entirely, since we can use the actual page in Calypso for that purpose. That simplifies the lib a fair amount by removing the need for any webpack config, package.json, typescript config, demo directory, and (I think) jest config. |
I think we can get hot-reloading working without moving the package if that helps... We just need to add a watcher for packages/** and have it run |
on the |
Just to close the loop on this, issue #22637 is about this very problem, and links to the resolution in the test docs; it's possible to set the test environment (node by default, which doesn't have |
This has been rendered obsolete by #37802. |
Changes proposed in this Pull Request
Moving this package into calypso so we get hot reloading during development. It may or may not make sense to move some of this out of calypso later, particularly the parts that are tightly bound to the billing backend.
This also sets the Jest test environment locally to ensure we use jsdom, per the unit testing readme.