Fix compilation caused by jest-file-snapshot problem

This commit is contained in:
Johannes Zillmann 2021-03-20 19:01:30 +01:00
parent 68c4d9a4a3
commit 65e17f2c4a
3 changed files with 2867 additions and 4170 deletions

7022
core/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,7 @@
"lib/src/**/*"
],
"scripts": {
"postinstall": "patch-package",
"test": "jest",
"test-write": "jest --updateSnapshot test/Files.test.ts",
"build": "tsc",
@ -34,6 +35,7 @@
"@types/jest": "^26.0.19",
"jest": "^26.6.3",
"jest-file-snapshot": "^0.5.0",
"patch-package": "^6.4.7",
"pdfjs-dist": "^2.5.207",
"prettier": "^2.2.1",
"ts-jest": "^26.4.4",

View File

@ -0,0 +1,13 @@
diff --git a/node_modules/jest-file-snapshot/index.d.ts b/node_modules/jest-file-snapshot/index.d.ts
index 88db2ef..e44ec36 100644
--- a/node_modules/jest-file-snapshot/index.d.ts
+++ b/node_modules/jest-file-snapshot/index.d.ts
@@ -6,7 +6,7 @@ export const toMatchFile: (
content: string | Buffer,
filename?: string,
options?: FileMatcherOptions
-) => CustomMatcherResult;
+) => jest.CustomMatcherResult;
declare interface FileMatcherOptions {
diff?: DiffOptions;