beforeEach(async () => { const sandbox = sinon.sandbox.create() ... }) test('/add', () => { // how can I use sandbox here? })
我需要的是类似t.contextava
t.context
jestjs
jestjs ×1