From 0d3d8a5a650fefd2b3e1d4c57e613096621286d4 Mon Sep 17 00:00:00 2001 From: Benjamin Petetot Date: Tue, 17 Dec 2024 16:08:46 +0100 Subject: [PATCH] WIP: other pnpm script updates --- api/scripts/generate-cron.js | 2 +- high-level-tests/e2e/cypress/support/index.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/scripts/generate-cron.js b/api/scripts/generate-cron.js index 73fe0a1f588..e4210086ef0 100644 --- a/api/scripts/generate-cron.js +++ b/api/scripts/generate-cron.js @@ -4,7 +4,7 @@ const cronContent = { if (process.env.CACHE_RELOAD_TIME) { const cacheReloadJob = { - command: `${process.env.CACHE_RELOAD_TIME} npm run cache:refresh`, + command: `${process.env.CACHE_RELOAD_TIME} pnpm run cache:refresh`, }; if (process.env.CACHE_RELOAD_CONTAINER_SIZE) { cacheReloadJob.size = process.env.CACHE_RELOAD_CONTAINER_SIZE; diff --git a/high-level-tests/e2e/cypress/support/index.js b/high-level-tests/e2e/cypress/support/index.js index 60a2340ab37..cc464fcef01 100644 --- a/high-level-tests/e2e/cypress/support/index.js +++ b/high-level-tests/e2e/cypress/support/index.js @@ -14,23 +14,23 @@ // *********************************************************** // Import commands.js using ES2015 syntax: -import './commands'; -import 'cypress-axe'; +import "./commands"; +import "cypress-axe"; // Alternatively you can use CommonJS syntax: // require('./commands') beforeEach(() => { - cy.exec('npm run db:empty'); + cy.exec("pnpm run db:empty"); cy.window().then((win) => { win.sessionStorage.clear(); }); - cy.on('uncaught:exception', (err) => { + cy.on("uncaught:exception", (err) => { if ( err.message.includes( - 'You attempted to remove a function listener which did not exist on the instance, which means you may have attempted to remove it before it was added.' + "You attempted to remove a function listener which did not exist on the instance, which means you may have attempted to remove it before it was added." ) ) { return false;