Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/docs-consistency.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function markdownLinks(markdown: string): string[] {
}

describe("documentation consistency", () => {
const publicDocs = [resolve(root, "README.md"), resolve(root, "README-EN.md"), ...markdownFiles(docsRoot)];
const publicDocs = [resolve(root, "README.md"), resolve(root, "README-zh.md"), ...markdownFiles(docsRoot)];

it("package entry points target compiled artifacts", () => {
const pkg = JSON.parse(readFileSync(resolve(root, "package.json"), "utf8"));
Expand Down Expand Up @@ -101,7 +101,7 @@ describe("documentation consistency", () => {
it("does not expose internal Pi host or superseded completion and renderer conventions", () => {
const currentGuides = [
resolve(root, "README.md"),
resolve(root, "README-EN.md"),
resolve(root, "README-zh.md"),
resolve(docsRoot, "getting-started.md"),
...markdownFiles(resolve(docsRoot, "guides")),
...markdownFiles(resolve(docsRoot, "reference")),
Expand All @@ -113,7 +113,7 @@ describe("documentation consistency", () => {

it("does not claim that debug logging is enabled by default", () => {
const readme = readFileSync(resolve(root, "README.md"), "utf8");
expect(readme).toContain("默认不会写调试日志文件");
expect(readme).toContain("Debug log files are not written by default.");
expect(readme).toContain("debug: true");
});
});
Loading