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
Supports running mocks in Node #146
Conversation
2f77c1e
to
976c02c
Compare
ae59b69
to
8013222
Compare
After adopting the |
5770fb3
to
b704ecb
Compare
b704ecb
to
0f427f5
Compare
a036c63
to
9b0172d
Compare
e02b1ed
to
7580a37
Compare
Need to make sure this is the expected behavior from Rollup:
Edit: This error doesn't occur anymore after |
7ab592e
to
6c0d110
Compare
6c0d110
to
0ec75ed
Compare
I've tried to create a unit test example that asserts a component's behavior that uses |
Changes
req.url
is now an instance ofURL
, not a string.req.query
is removed in favor ofreq.url.searchParams
.GitHub
Roadmap
setupServer
res()
function, that usesnew Headers()
instance, which does not exist in Node (also affectingctx.fetch()
: ctx.fetch() not keeping original headers #145, Issue #145 ctx.fetch() not keeping original headers #149)https
,tty, etc.
).EventEmitter
dependency issue:rest-deps.js
chunk.Testing scenarios
CRA + @testing-library/react