Creates a new temporary mock directory that will be removed after the tests have completed.
Optional
This method is intended to be called outside of any test, either at top-level or within a describe block. It will call afterAll to make sure that the mock directory is removed after the tests have run.
describe
afterAll
describe('MySubject', () => { const mockDir = createMockDirectory(); beforeEach(mockDir.clear); it('should work', () => { // ... use mockDir })}) Copy
describe('MySubject', () => { const mockDir = createMockDirectory(); beforeEach(mockDir.clear); it('should work', () => { // ... use mockDir })})
Creates a new temporary mock directory that will be removed after the tests have completed.