chore: Upgrade pdfjs-dist (no-changelog) (#15729)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-06-04 18:31:22 +02:00
committed by GitHub
parent d64f2e57f7
commit b772462cea
8 changed files with 187 additions and 36 deletions

View File

@@ -21,7 +21,15 @@ const config = {
testPathIgnorePatterns: ['/dist/', '/node_modules/'],
transform: {
'^.+\\.ts$': ['ts-jest', tsJestOptions],
'node_modules/pdfjs-dist/.+\\.mjs$': [
'babel-jest',
{
presets: ['@babel/preset-env'],
plugins: ['babel-plugin-transform-import-meta'],
},
],
},
transformIgnorePatterns: ['/dist/', '/node_modules/(?!.*pdfjs-dist/)'],
// This resolve the path mappings from the tsconfig relative to each jest.config.js
moduleNameMapper: compilerOptions?.paths
? pathsToModuleNameMapper(compilerOptions.paths, {