lint fix
Some checks failed
DB migration compat / Check if migrations changed (push) Has been cancelled
DB migration compat / Back-compat — Current branch migrations with ${{ needs.check-migrations-changed.outputs.base_branch }} branch code (push) Has been cancelled
DB migration compat / Forward-compat — Current branch code with ${{ needs.check-migrations-changed.outputs.base_branch }} branch migrations (push) Has been cancelled
DB migration compat / No migration changes (skipped) (push) Has been cancelled

This commit is contained in:
Aadesh Kheria 2026-05-08 13:00:29 -07:00
parent c664a1df10
commit 1389d373a0

View File

@ -29,17 +29,21 @@ async function readManualEntry(token: string, qaId: bigint) {
function readOptional<T>(value: unknown): T | undefined {
if (value == null) return undefined;
if (typeof value === "object" && value != null && "some" in value) {
if (typeof value === "object" && "some" in value) {
return (value as { some: T }).some;
}
if (typeof value === "object" && value != null && "none" in value) return undefined;
if (typeof value === "object" && "none" in value) return undefined;
return value as T;
}
describe.skipIf(!canRun)("qa_entries CRUD invariants", () => {
let scope: CleanupScope;
beforeEach(() => { scope = createCleanupScope(); });
afterEach(async () => { await scope.cleanup(); });
beforeEach(() => {
scope = createCleanupScope();
});
afterEach(async () => {
await scope.cleanup();
});
it("firstPublishedAt is immutable; lastPublishedAt updates per republish; both survive unpublish", async ({ expect }) => {
const reviewer = await mintIdentity();