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',