diff --git a/integration-tests/cypress.config.ts b/integration-tests/cypress.config.ts index 08ee4e2..beea5a2 100644 --- a/integration-tests/cypress.config.ts +++ b/integration-tests/cypress.config.ts @@ -1,5 +1,5 @@ import { defineConfig } from "cypress" -import { mkdir, readdir, readFile, rm } from "fs/promises" +import { readFile, rm } from "fs/promises" import path from "path" import { fileURLToPath } from "url" @@ -17,26 +17,9 @@ const yaziLogFile = path.join( console.log(`yaziLogFile: ${yaziLogFile}`) -const testEnvironmentDir = path.join(__dirname, "test-environment") -const testdirs = path.join(testEnvironmentDir, "testdirs") - export default defineConfig({ e2e: { setupNodeEvents(on, _config) { - on("after:browser:launch", async (): Promise => { - // delete everything under the ./test-environment/testdirs/ directory - await mkdir(testdirs, { recursive: true }) - const files = await readdir(testdirs) - - console.log("Cleaning up testdirs directory...") - - for (const file of files) { - const testdir = path.join(testdirs, file) - console.log(`Removing ${testdir}`) - await rm(testdir, { recursive: true }) - } - }) - on("task", { async removeYaziLog(): Promise { try {