Repository navigation
v0.15.0
Minor Changes
-
3e06227Thanks @cevr! - Extendeffect/noModuleMocksto bun:test and to every mock-double entry point. It now reportsmock.module(), baremock(), and barespyOn()bound tobun:test, plusfn,doMock,mocked, andunmockonviandjestfromvitest,@jest/globals,bun:test, or the unshadowed runner globals.vi.fn()andjest.fn()were previously allowed and are now reported.Add
effect/noTestGlobalsto the recommended preset. In test files (*.test.*,*.spec.*) it reports writes (assignment, update, anddelete) toglobalThis,window,global,self, andprocess.env;Reflect.set/defineProperty/deletePropertyandObject.assign/defineProperty/definePropertieson those objects;vi.stubGlobal,vi.stubEnv,vi.unstubAllGlobals,vi.unstubAllEnvs, andjest.replaceProperty; and any runner global such asdescribe,it,expect, orbeforeEachthat no import provides.