From 085590a4ca64bebad9ef60503411e1a6dd4d93f9 Mon Sep 17 00:00:00 2001 From: Ibrahim <93064150+IbrahimCSAE@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:19:23 -0500 Subject: [PATCH] fix(cli): publish 4D preclincial mode on NPM so it can be used in the OHIF cli commands (#4557) --- modes/preclinical-4d/package.json | 3 +++ platform/app/cypress/support/commands.js | 1 + 2 files changed, 4 insertions(+) diff --git a/modes/preclinical-4d/package.json b/modes/preclinical-4d/package.json index e9b4c4dda..23ac6a978 100644 --- a/modes/preclinical-4d/package.json +++ b/modes/preclinical-4d/package.json @@ -17,6 +17,9 @@ "public/**", "README.md" ], + "publishConfig": { + "access": "public" + }, "keywords": [ "ohif-mode" ], diff --git a/platform/app/cypress/support/commands.js b/platform/app/cypress/support/commands.js index 7e8f912c9..4ead24dc1 100644 --- a/platform/app/cypress/support/commands.js +++ b/platform/app/cypress/support/commands.js @@ -47,6 +47,7 @@ Cypress.Commands.add('openStudy', PatientName => { Cypress.Commands.add( 'checkStudyRouteInViewer', (StudyInstanceUID, otherParams = '', mode = '/basic-test') => { + Cypress.on('uncaught:exception', () => false); cy.location('pathname').then($url => { cy.log($url); if ($url === 'blank' || !$url.includes(`${mode}/${StudyInstanceUID}${otherParams}`)) {