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
... you can see that the context.payload state that is modified in certain tests in index.test.ts (like setting draft or prelease) leaks across tests. Here's the output from npm test (see last two logs):
Was trying to add a feature and was writing tests and saw some very weird behaviour on node v20.2.0.
In
/tests/index.ts.ts
, in thebeforeEach
, if you add thisconsole.log
line at the end of the setup function:... you can see that the
context.payload
state that is modified in certain tests inindex.test.ts
(like settingdraft
orprelease
) leaks across tests. Here's the output fromnpm test
(see last two logs):The text was updated successfully, but these errors were encountered: