forked from LeenkxTeam/Kmake
13 lines
300 B
JavaScript
13 lines
300 B
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
const fs = require('node:fs');
|
||
|
|
|
||
|
|
const teardownFlagPath = process.env.TEARDOWN_ONLY_FLAG_PATH;
|
||
|
|
|
||
|
|
async function globalTeardown() {
|
||
|
|
console.log('Teardown-only module executed');
|
||
|
|
fs.writeFileSync(teardownFlagPath, 'Teardown-only was executed');
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = { globalTeardown };
|