try to fix cypress test

This commit is contained in:
SPRINX0\prochazka
2025-02-11 10:54:44 +01:00
parent b72af50a85
commit b5766494e1

View File

@@ -18,7 +18,11 @@ module.exports = defineConfig({
// console.log('********************* DETAILS *********************', JSON.stringify(details));
if (config.isInteractive) {
await killPort(3000);
try {
await killPort(3000);
} catch (e) {
console.warn('Error killing process on port 3000:', e.message);
}
switch (details.fileName) {
case 'add-connection':
serverProcess = exec('yarn start:add-connection');