[MNT-24538] Update PDFjs viewer version and disable annotation mode (#10538)

* [MNT-24538] Bump PDFjs viewer version and use annotation mode disabled

* [MNT-24538] Proper test params

* [ci:force]

* [MNT-24538] Use different pdfjs version

* [ci:force]

* [MNT-24538][ci:force] Use proper legacy paths

* [MNT-24538][ci:force] Use Node 22 LTS

* [MNT-24538] Use pdfjs legacy version

* [MNT-24538] Use existing pdfjs-dist version with new param

* [MNT-24538] Legacy build cleanup

* [MNT-24538] Lockfile fix

* [MNT-24538] Lockfile fix

* [MNT-24538] Unit test fix

* [MNT-24538] Unit test fixes
This commit is contained in:
MichalKinas
2025-01-15 11:41:56 +01:00
committed by GitHub
parent 18ff34c6c8
commit 8b5dcf19b9
6 changed files with 63 additions and 61 deletions

View File

@@ -1,5 +1,6 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
/* eslint-env es6 */
const { join } = require('path');
const { constants } = require('karma');
@@ -8,25 +9,25 @@ module.exports = function (config) {
basePath: '../../',
files: [
{pattern: 'node_modules/pdfjs-dist/build/pdf.js', included: true, watched: false},
{pattern: 'node_modules/pdfjs-dist/build/pdf.worker.js', included: true, watched: false},
{pattern: 'node_modules/pdfjs-dist/web/pdf_viewer.js', included: true, watched: false},
{ pattern: 'node_modules/pdfjs-dist/build/pdf.js', included: true, watched: false },
{ pattern: 'node_modules/pdfjs-dist/build/pdf.worker.js', included: true, watched: false },
{ pattern: 'node_modules/pdfjs-dist/web/pdf_viewer.js', included: true, watched: false },
{
pattern: 'node_modules/@angular/material/prebuilt-themes/indigo-pink.css',
included: true,
watched: false
},
{pattern: 'lib/content-services/src/lib/i18n/**/en.json', included: false, served: true, watched: false},
{ pattern: 'lib/content-services/src/lib/i18n/**/en.json', included: false, served: true, watched: false },
{
pattern: 'lib/content-services/src/lib/assets/images/**/*.svg',
included: false,
served: true,
watched: false
},
{pattern: 'lib/core/src/lib/assets/**/*.svg', included: false, served: true, watched: false},
{pattern: 'lib/core/src/lib/i18n/**/en.json', included: false, served: true, watched: false},
{pattern: 'lib/content-services/**/*.ts', included: false, served: true, watched: false},
{pattern: 'lib/config/app.config.json', included: false, served: true, watched: false}
{ pattern: 'lib/core/src/lib/assets/**/*.svg', included: false, served: true, watched: false },
{ pattern: 'lib/core/src/lib/i18n/**/en.json', included: false, served: true, watched: false },
{ pattern: 'lib/content-services/**/*.ts', included: false, served: true, watched: false },
{ pattern: 'lib/config/app.config.json', included: false, served: true, watched: false }
],
frameworks: ['jasmine-ajax', 'jasmine', '@angular-devkit/build-angular'],
@@ -38,7 +39,7 @@ module.exports = function (config) {
'/assets/adf-content-services/i18n/en.json': '/base/lib/content-services/src/lib/i18n/en.json',
'/assets/adf-core/i18n/en.json': '/base/lib/core/src/lib/i18n/en.json',
'/assets/adf-core/i18n/en-GB.json': '/base/lib/core/src/lib/i18n/en.json',
'/app.config.json': '/base/lib/config/app.config.json',
'/app.config.json': '/base/lib/config/app.config.json'
},
plugins: [
@@ -58,7 +59,7 @@ module.exports = function (config) {
},
jasmineHtmlReporter: {
suppressAll: true, // removes the duplicated traces
suppressAll: true // removes the duplicated traces
},
coverageReporter: {
@@ -78,12 +79,7 @@ module.exports = function (config) {
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: [
'--no-sandbox',
'--headless',
'--disable-gpu',
'--remote-debugging-port=9222'
]
flags: ['--no-sandbox', '--headless', '--disable-gpu', '--remote-debugging-port=9222']
}
},