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
{{ message }}
Repository navigation
Hot runtime: matchers added with expect.extend in one file stay for later files #808
Under hotRuntime, including freshRuntime: true, a matcher a test file adds with expect.extend stays available in every later file on the same worker. Under per-file isolation, each file starts with only the matchers its setup files add.
expect and chai are resident test-runtime packages, so a registration made during one file survives the per-file reset. Matchers registered in setup files are unaffected, because those run again for every file. The impact is a file that passes only because an earlier file on its worker registered a matcher it never registers itself.
Either restore the matcher set at each file boundary, or document it as a known difference.
Activity