1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Limit the amount of console "spam" during fuzz tests (PR 17337 follow-up)

Having just tested PR 17337 locally I noticed that especially the `JpxImage`-test causes a "ridiculous" amount of warning messages to be printed, which doesn't seem helpful.
Given that only actual `Error`s should be relevant here, we can easily disable this logging during the tests.
This commit is contained in:
Jonas Jenwald 2023-12-04 16:19:25 +01:00
parent 476cb84d92
commit d7bec1b527
5 changed files with 36 additions and 5 deletions

View file

@ -13,7 +13,11 @@
* limitations under the License.
*/
import { getVerbosityLevel, setVerbosityLevel } from "./shared/util.js";
import {
getVerbosityLevel,
setVerbosityLevel,
VerbosityLevel,
} from "./shared/util.js";
import { Jbig2Image } from "./core/jbig2.js";
import { JpegImage } from "./core/jpg.js";
import { JpxImage } from "./core/jpx.js";
@ -31,4 +35,5 @@ export {
JpegImage,
JpxImage,
setVerbosityLevel,
VerbosityLevel,
};