e2e test config

This commit is contained in:
SPRINX0\prochazka
2024-12-10 08:48:53 +01:00
parent 1f7f0ea8a2
commit 0b30386fee
4 changed files with 28 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
const { defineConfig } = require('cypress');
const killPort = require('kill-port');
const { clearDataWithBackup } = require('./e2eTestTools');
const { clearTestingData } = require('./e2eTestTools');
const waitOn = require('wait-on');
const { exec } = require('child_process');
@@ -10,7 +10,7 @@ module.exports = defineConfig({
// implement node event listeners here
on('before:spec', async details => {
await clearDataWithBackup();
await clearTestingData();
if (config.isInteractive) {
await killPort(3000);