mirror of
https://github.com/vesan/obsidian-table-beautifier.git
synced 2026-07-22 06:53:19 +00:00
- Add @vitest/coverage-v8, test:coverage script, vitest.config.ts - Extract looksLikeTable to src/detect.ts so it is testable without pulling the obsidian runtime - Add edge-case tests for parser, formatter, convert, and detect (23 -> 38 tests; line coverage 100% on every file except main.ts) - Run coverage in CI and append the line % to the step summary
21 lines
625 B
JSON
21 lines
625 B
JSON
{
|
|
"name": "obsidian-table-beautifier",
|
|
"version": "1.0.1",
|
|
"description": "Obsidian plugin that converts ASCII/Unicode box-drawing tables into Markdown tables",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"dev": "node esbuild.config.mjs",
|
|
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.11.0",
|
|
"@vitest/coverage-v8": "^4.1.7",
|
|
"esbuild": "^0.28.0",
|
|
"obsidian": "latest",
|
|
"typescript": "^5.3.0",
|
|
"vitest": "^4.1.7"
|
|
}
|
|
}
|