How to use the setGracefulCleanup function from tmp

Find comprehensive JavaScript tmp.setGracefulCleanup code examples handpicked from public code repositorys.

54
55
56
57
58
59
60
61
62
63
const testCafeConfiguration = new TestCafeConfiguration();
let keyFileContent          = null;
let keyFile                 = null;

consoleWrapper.init();
tmp.setGracefulCleanup();

beforeEach(() => {
    keyFile        = tmp.fileSync();
    keyFileContent = Buffer.from(nanoid());
fork icon677
star icon0
watch icon0