mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	chore(monorepo/client): integrate test support
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| import { lint } from "./eslint.js"; | ||||
| import { trimIndentation } from "../../../../spec/support/utils.js"; | ||||
| import { trimIndentation } from "@triliumnext/commons"; | ||||
| import { describe, expect, it } from "vitest"; | ||||
|  | ||||
| describe("Linter", () => { | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| import { describe, expect, it } from "vitest"; | ||||
| import { postprocessMermaidSvg } from "./mermaid.js"; | ||||
| import { trimIndentation } from "../../../../spec/support/utils.js"; | ||||
| import { trimIndentation } from "@triliumnext/commons"; | ||||
|  | ||||
| describe("Mermaid", () => { | ||||
|     it("converts <br> properly", () => { | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| import { describe, expect, it, vi } from "vitest"; | ||||
| import { trimIndentation } from "../../../../../../spec/support/utils.js"; | ||||
| import { describe, expect, it } from "vitest"; | ||||
| import { trimIndentation } from "@triliumnext/commons"; | ||||
| import { validateMermaid } from "./mermaid.js"; | ||||
|  | ||||
| describe("Mermaid linter", () => { | ||||
|   | ||||
							
								
								
									
										1916
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1916
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -24,6 +24,7 @@ | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@types/node": "^22.14.1", | ||||
|     "typescript": "5.8.3" | ||||
|     "typescript": "5.8.3", | ||||
|     "vitest": "^3.1.1" | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -3,3 +3,4 @@ export * from "./options_interface.js"; | ||||
| export * from "./keyboard_actions_interface.js"; | ||||
| export * from "./hidden_subtree.js"; | ||||
| export * from "./rows.js"; | ||||
| export * from "./test-utils.js" | ||||
| @@ -1,5 +1,5 @@ | ||||
| import { describe, it, expect } from "vitest"; | ||||
| import { trimIndentation } from "./utils.js"; | ||||
| import { trimIndentation } from "./test-utils.js"; | ||||
| 
 | ||||
| describe("Utils", () => { | ||||
|     it("trims indentation", () => { | ||||
		Reference in New Issue
	
	Block a user