Bugzilla – Attachment 176775 Details for
Bug 38503
Add a Cypress task to generate objects based on its swagger def spec
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38503: Merge the module.exports
Bug-38503-Merge-the-moduleexports.patch (text/plain), 1.99 KB, created by
Jonathan Druart
on 2025-01-20 09:56:49 UTC
(
hide
)
Description:
Bug 38503: Merge the module.exports
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-01-20 09:56:49 UTC
Size:
1.99 KB
patch
obsolete
>From 502a690dfcd9912a9625d344632d1f3d2fe2e64e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 20 Jan 2025 10:55:29 +0100 >Subject: [PATCH] Bug 38503: Merge the module.exports > >We redefine it and so the query/mysql plugin is not available > >It fixes csrf.ts >14:36:17 koha_1 | The task 'query' was not handled in the setupNodeEvents method. The following tasks are registered: buildSampleObject, buildSampleObjects >--- > cypress.config.ts | 2 +- > t/cypress/plugins/index.js | 14 ++++---------- > 2 files changed, 5 insertions(+), 11 deletions(-) > >diff --git a/cypress.config.ts b/cypress.config.ts >index e90da4e019d..94f13d6bd47 100644 >--- a/cypress.config.ts >+++ b/cypress.config.ts >@@ -12,7 +12,7 @@ export default defineConfig({ > return require("./t/cypress/plugins/index.js")(on, config); > }, > experimentalStudio: true, >- baseUrl: "http://localhost:8081", >+ baseUrl: "http://kohadev-intra.mydnsname.org:8081", > specPattern: "t/cypress/integration/**/*.*", > supportFile: "t/cypress/support/e2e.js", > env: { >diff --git a/t/cypress/plugins/index.js b/t/cypress/plugins/index.js >index 6f14a7f4f9e..76e6a4c249c 100644 >--- a/t/cypress/plugins/index.js >+++ b/t/cypress/plugins/index.js >@@ -1,5 +1,9 @@ > const { startDevServer } = require('@cypress/webpack-dev-server') > >+const mysql = require("cypress-mysql"); >+ >+const { buildSampleObject, buildSampleObjects } = require("./mockData.js"); >+ > module.exports = (on, config) => { > on('dev-server:start', options => > startDevServer({ >@@ -7,18 +11,8 @@ module.exports = (on, config) => { > }) > ) > >- return config; >-}; >- >-const mysql = require("cypress-mysql"); >- >-module.exports = (on, config) => { > mysql.configurePlugin(on); >-}; > >-const { buildSampleObject, buildSampleObjects } = require("./mockData.js"); >- >-module.exports = (on, config) => { > on("task", { > buildSampleObject, > buildSampleObjects, >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38503
:
174872
|
174873
|
174874
|
174875
|
174876
|
174884
|
174885
|
174921
|
174922
|
175173
|
175175
|
175212
|
175213
|
175214
|
175215
|
175216
|
175217
|
175218
|
175219
|
175220
|
175221
|
175222
|
175888
|
175889
|
175890
|
175891
|
175892
|
175893
|
175894
|
175895
|
175896
|
176073
|
176074
|
176075
|
176076
|
176077
|
176078
|
176079
|
176080
|
176081
|
176775
|
176776
|
176792