1812
package-lock.json
generated
1812
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -75,7 +75,7 @@
|
|||||||
"@types/xml": "^1.0.8",
|
"@types/xml": "^1.0.8",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.8.1",
|
"@typescript-eslint/eslint-plugin": "^8.8.1",
|
||||||
"@typescript-eslint/parser": "^8.8.1",
|
"@typescript-eslint/parser": "^8.8.1",
|
||||||
"@vitest/coverage-v8": "^1.1.0",
|
"@vitest/coverage-v8": "^2.1.8",
|
||||||
"@vitest/ui": "^2.1.2",
|
"@vitest/ui": "^2.1.2",
|
||||||
"cspell": "^8.2.3",
|
"cspell": "^8.2.3",
|
||||||
"docsify-cli": "^4.3.0",
|
"docsify-cli": "^4.3.0",
|
||||||
@ -104,7 +104,7 @@
|
|||||||
"vite-plugin-dts": "^4.2.4",
|
"vite-plugin-dts": "^4.2.4",
|
||||||
"vite-plugin-node-polyfills": "^0.22.0",
|
"vite-plugin-node-polyfills": "^0.22.0",
|
||||||
"vite-tsconfig-paths": "^5.0.1",
|
"vite-tsconfig-paths": "^5.0.1",
|
||||||
"vitest": "^1.1.0"
|
"vitest": "^2.1.8"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
|
@ -3,7 +3,6 @@ import { describe, expect, it, vi } from "vitest";
|
|||||||
import { IViewWrapper } from "@file/document-wrapper";
|
import { IViewWrapper } from "@file/document-wrapper";
|
||||||
import { File } from "@file/file";
|
import { File } from "@file/file";
|
||||||
import { Paragraph, TextRun } from "@file/paragraph";
|
import { Paragraph, TextRun } from "@file/paragraph";
|
||||||
import { IContext } from "@file/xml-components";
|
|
||||||
|
|
||||||
import { PatchType } from "./from-docx";
|
import { PatchType } from "./from-docx";
|
||||||
import { replacer } from "./replacer";
|
import { replacer } from "./replacer";
|
||||||
@ -87,8 +86,7 @@ describe("replacer", () => {
|
|||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
patchText: "hello",
|
patchText: "hello",
|
||||||
// eslint-disable-next-line functional/prefer-readonly-type
|
context: vi.fn()(),
|
||||||
context: vi.fn<[], IContext>()(),
|
|
||||||
});
|
});
|
||||||
expect(didFindOccurrence).toBe(false);
|
expect(didFindOccurrence).toBe(false);
|
||||||
});
|
});
|
||||||
|
@ -77,6 +77,7 @@ export default defineConfig({
|
|||||||
'**/scripts/**',
|
'**/scripts/**',
|
||||||
'**/src/**/index.ts',
|
'**/src/**/index.ts',
|
||||||
'**/src/**/types.ts',
|
'**/src/**/types.ts',
|
||||||
|
'**/*.spec.ts',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
include: [
|
include: [
|
||||||
|
Reference in New Issue
Block a user