Skip to content

Commit

Permalink
added clean up on afterEach
Browse files Browse the repository at this point in the history
  • Loading branch information
htbkoo committed Feb 24, 2020
1 parent 47dae74 commit dc64147
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/__jest__/teardown.js
@@ -1,6 +1,11 @@
const {EPUB_TO_BE_CREATED_URL} = require("../epub-io.test");
const fs = require("fs");

afterEach(() => {
console.log('afterEach');
tryRemovingFile(EPUB_TO_BE_CREATED_URL);
});

afterAll(() => {
console.log('afterAll');
tryRemovingFile(EPUB_TO_BE_CREATED_URL);
Expand Down

0 comments on commit dc64147

Please sign in to comment.