-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
update to new power-assert-runtime #903
Conversation
Thanks @nfcampos! This is exactly what I wanted to do today 😃 babel-plugin-espower 2.2.0 and the new power-assert-runtime comes with many architectural improvements with less dependencies. I hope AVA guys will like it. |
I'm sure we will! @twada, has the runtime dependency graph been reduced? Should we move rendering back into the child processes - we've had lots of problems trying to serialize large objects for rendering in the main thread. |
Yeah, reducing dependencies is one of the goals of new power-assert-runtime. There's no extra parser anymore. Many ponyfills are consolidated into single core-js. I also recommend @nfcampos to update empower-core to 0.6.1 to reduce dependencies much more.
Yes. Now we can render power-assert output in subprocesses. |
@nfcampos. Can you bump the dependency as mentioned? Otherwise this looks good to me. We can tackle moving rendering to the child process in another PR |
done |
Thanks @nfcampos, looks good to me! 👍 |
Thanks @nfcampos! Want to work on moving the renderer into the child process? The idea is to go back to the way |
@jamestalmage yes, I'll do that, if I understand correctly it's something like using https://github.com/power-assert-js/empower instead of |
@nfcampos One thing to notice is that |
@twada yeah you're right |
@nfcampos So, quick question about the ava docs and this PR, specifically in the React recipe for JSX helpers there the following note:
The text links to this issue which although open (documentation still pending) states that it will be available in ava as soon as this PR (#903) is merged. Since #903 has been merged, do we need to remove that note from the React recipe? |
yes that note should be removed, that should now work |
{...o}
on an assertion worksmaybe @twada can check whether I correctly configured the various
power-assert
things