Files
Kmake/test/fixtures/test-runner/global-setup-teardown/teardown-only.js

13 lines
300 B
JavaScript
Raw Normal View History

2026-05-26 23:36:42 -07:00
'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 };