Koha/cypress.config.ts
Victor Grousset/tuxayo 4dbe67f6f2
Bug 38770: Remove @vue/cli-service and babel
And the webpack related dead config.

Test plan:
1. Do not apply
2. Switch to node 22
     sudo sed 's/18.x/22.x/g' -i /etc/apt/sources.list.d/nodesource.list
     sudo apt update ; sudo apt install nodejs
3. Try to install node deps
     sudo yarn install --modules-folder /kohadevbox/node_modules
4. It fails
     error @achrinza/node-ipc@9.2.5: The engine "node" is incompatible with this module.
     Expected version "8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18". Got "22.12.0"
5. Apply patches
6. Try to install node deps
     sudo yarn install --modules-folder /kohadevbox/node_modules
7. It works! :)

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-01-16 15:56:15 +01:00

27 lines
787 B
TypeScript

import { defineConfig } from "cypress";
export default defineConfig({
fixturesFolder: "t/cypress/fixtures",
screenshotsFolder: "t/cypress/screenshots",
videosFolder: "t/cypress/videos",
defaultCommandTimeout: 10000,
requestTimeout: 10000,
e2e: {
setupNodeEvents(on, config) {
return require("./t/cypress/plugins/index.js")(on, config);
},
experimentalStudio: true,
baseUrl: "http://localhost:8081",
specPattern: "t/cypress/integration/**/*.*",
supportFile: "t/cypress/support/e2e.js",
env: {
db: {
host: "db",
user: "koha_kohadev",
password: "password",
database: "koha_kohadev",
},
},
},
});