You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- This require introducing a way of having "require.main" undefined
in our module. The require function is different between the test
module and the module under test, so we can't just do
`require.main = null`
in the test function, as it won't affect the "require" function
of the prod code. So we need to introduce a helper function for
evaluating require.main, and injact a flag in the test module
when running the tests.
0 commit comments