15 lines
661 B
TypeScript
15 lines
661 B
TypeScript
import fs from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
import { resolveRepoPath } from "~/utils/testing/repoPaths";
|
|
|
|
describe("test routes i18n", () => {
|
|
it("uses semantic translation keys for visible Sentry smoke-test copy", () => {
|
|
const source = fs.readFileSync(resolveRepoPath("apps/web/app/routes/__test.client-throw.tsx"), "utf8");
|
|
|
|
expect(source).toContain("diagnostics.sentry.clientSmoke.title");
|
|
expect(source).toContain("diagnostics.sentry.clientSmoke.description");
|
|
expect(source).not.toContain("Sentry client smoke test");
|
|
expect(source).not.toContain("Triggering a synchronous client-side error");
|
|
});
|
|
});
|