Streamline training tasks and add debugging guide
Reorganize the README checklist: fold the standalone Ex-command task into earlier tasks, give the outline panel its own bindings (g o / Ctrl+Shift+O), and add a dedicated debugging task with breakpoint, stepping, and fault-finding drills anchored to real lines in the training app. Annotate the training app sources and tests with Chinese practice hints (multi-cursor, macro, text-object, and breakpoint spots). Drop the redundant root tsconfig, since training/tsconfig.json already covers src and tests, and remove the stale LEADERBOARD.md left over from the deleted challenge mode.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// vitest 单测:catalog 相关用例,练完 ga / 宏之后用 npm run test 验证
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { PRODUCTS, findProduct } from "../src/catalog";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// vitest 单测:任务11 的 f4 调试入口(选个用例跑,就能撞上 src 里的断点)
|
||||
import { describe, expect, it, beforeEach } from "vitest";
|
||||
import { createOrder, findOrder, listOrders, shipOrder } from "../src/orders";
|
||||
import { available } from "../src/inventory";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// vitest 单测:pricing 相关用例,断点可设在 lineTotal / shippingCost 上
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { round2, lineTotal, shippingCost } from "../src/pricing";
|
||||
import { findProduct } from "../src/catalog";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// vitest 单测:Receipt 类相关用例,断点可设在 receipt.ts 的方法里
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { Receipt } from "../src/receipt";
|
||||
import { createOrder } from "../src/orders";
|
||||
|
||||
Reference in New Issue
Block a user