mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2025-06-25 03:51:33 +02:00
Fix compilation caused by jest-file-snapshot problem
This commit is contained in:
parent
68c4d9a4a3
commit
65e17f2c4a
7022
core/package-lock.json
generated
7022
core/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -19,6 +19,7 @@
|
|||||||
"lib/src/**/*"
|
"lib/src/**/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"postinstall": "patch-package",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test-write": "jest --updateSnapshot test/Files.test.ts",
|
"test-write": "jest --updateSnapshot test/Files.test.ts",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
@ -34,6 +35,7 @@
|
|||||||
"@types/jest": "^26.0.19",
|
"@types/jest": "^26.0.19",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"jest-file-snapshot": "^0.5.0",
|
"jest-file-snapshot": "^0.5.0",
|
||||||
|
"patch-package": "^6.4.7",
|
||||||
"pdfjs-dist": "^2.5.207",
|
"pdfjs-dist": "^2.5.207",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.2.1",
|
||||||
"ts-jest": "^26.4.4",
|
"ts-jest": "^26.4.4",
|
||||||
|
13
core/patches/jest-file-snapshot+0.5.0.patch
Normal file
13
core/patches/jest-file-snapshot+0.5.0.patch
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user