From d7a9b01328e2c76fe310bc2002bd0fd41c198c25 Mon Sep 17 00:00:00 2001 From: VitoAlbano Date: Sat, 15 Mar 2025 10:44:02 +0000 Subject: [PATCH] [AAE-30877] - At this point is just try and error --- .github/workflows/pull-request.yml | 2 +- lib/core/karma.conf.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9c66a294d4..b8b4ec2162 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -173,7 +173,7 @@ jobs: - uses: ./.github/actions/upload-node-modules-and-artifacts unit-tests: - timeout-minutes: 30 + timeout-minutes: 60 name: "Unit tests: ${{ matrix.unit-tests.name }}" runs-on: ubuntu-latest needs: [setup] diff --git a/lib/core/karma.conf.js b/lib/core/karma.conf.js index 8f8ba32b11..a296a03632 100644 --- a/lib/core/karma.conf.js +++ b/lib/core/karma.conf.js @@ -8,9 +8,9 @@ module.exports = function (config) { config.set({ basePath: '../../', files: [ - { pattern: 'node_modules/pdfjs-dist/build/pdf.min.mjs', type: 'module', included: true, watched: false }, - { pattern: 'node_modules/pdfjs-dist/build/pdf.worker.min.mjs', type: 'module', included: true, watched: false }, - { pattern: 'node_modules/pdfjs-dist/web/pdf_viewer.mjs', type: 'module', included: true, watched: false }, + { pattern: 'node_modules/pdfjs-dist/legacy/build/pdf.min.mjs', type: 'module', included: true, watched: false }, + { pattern: 'node_modules/pdfjs-dist/legacy/build/pdf.worker.min.mjs', type: 'module', included: true, watched: false }, + { pattern: 'node_modules/pdfjs-dist/legacy/web/pdf_viewer.mjs', type: 'module', included: true, watched: false }, { pattern: 'node_modules/@angular/material/prebuilt-themes/indigo-pink.css', @@ -37,8 +37,8 @@ module.exports = function (config) { frameworks: ['jasmine-ajax', 'jasmine', '@angular-devkit/build-angular'], proxies: { - '/pdf.worker.min.mjs': '/base/node_modules/pdfjs-dist/build/pdf.min.mjs', - '/pdf.worker.js': '/base/node_modules/pdfjs-dist/build/pdf.worker.mjs', + '/pdf.worker.min.mjs': '/base/node_modules/pdfjs-dist/legacy/build/pdf.min.mjs', + '/pdf.worker.js': '/base/node_modules/pdfjs-dist/legacy/build/pdf.worker.mjs', '/fake-url-file.png': '/base/lib/core/src/lib/assets/images/logo.png', '/logo.png': '/base/lib/core/src/lib/assets/images/logo.png', '/alfresco-logo.svg': '/base/lib/core/src/lib/assets/images/alfresco-logo.svg',