mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	chore(monorepo/client): integrate test support
This commit is contained in:
		
							parent
							
								
									e327c918e1
								
							
						
					
					
						commit
						470e443841
					
				| @ -1,5 +1,5 @@ | |||||||
| import { lint } from "./eslint.js"; | import { lint } from "./eslint.js"; | ||||||
| import { trimIndentation } from "../../../../spec/support/utils.js"; | import { trimIndentation } from "@triliumnext/commons"; | ||||||
| import { describe, expect, it } from "vitest"; | import { describe, expect, it } from "vitest"; | ||||||
| 
 | 
 | ||||||
| describe("Linter", () => { | describe("Linter", () => { | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| import { describe, expect, it } from "vitest"; | import { describe, expect, it } from "vitest"; | ||||||
| import { postprocessMermaidSvg } from "./mermaid.js"; | import { postprocessMermaidSvg } from "./mermaid.js"; | ||||||
| import { trimIndentation } from "../../../../spec/support/utils.js"; | import { trimIndentation } from "@triliumnext/commons"; | ||||||
| 
 | 
 | ||||||
| describe("Mermaid", () => { | describe("Mermaid", () => { | ||||||
|     it("converts <br> properly", () => { |     it("converts <br> properly", () => { | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| import { describe, expect, it, vi } from "vitest"; | import { describe, expect, it } from "vitest"; | ||||||
| import { trimIndentation } from "../../../../../../spec/support/utils.js"; | import { trimIndentation } from "@triliumnext/commons"; | ||||||
| import { validateMermaid } from "./mermaid.js"; | import { validateMermaid } from "./mermaid.js"; | ||||||
| 
 | 
 | ||||||
| describe("Mermaid linter", () => { | 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": { |   "devDependencies": { | ||||||
|     "@types/node": "^22.14.1", |     "@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 "./keyboard_actions_interface.js"; | ||||||
| export * from "./hidden_subtree.js"; | export * from "./hidden_subtree.js"; | ||||||
| export * from "./rows.js"; | export * from "./rows.js"; | ||||||
|  | export * from "./test-utils.js" | ||||||
| @ -1,5 +1,5 @@ | |||||||
| import { describe, it, expect } from "vitest"; | import { describe, it, expect } from "vitest"; | ||||||
| import { trimIndentation } from "./utils.js"; | import { trimIndentation } from "./test-utils.js"; | ||||||
| 
 | 
 | ||||||
| describe("Utils", () => { | describe("Utils", () => { | ||||||
|     it("trims indentation", () => { |     it("trims indentation", () => { | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran