Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/jest.teardown.js
1028 views
1
const os = require('os');
2
const { execSync } = require('child_process');
3
4
module.exports = () => {
5
try {
6
if (os.platform() === 'win32') {
7
execSync(`taskkill /t /f /im chrome.exe 2> nul`);
8
}
9
} catch (err) {
10
// ignore
11
}
12
};
13
14