mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
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
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:
parent
c664a1df10
commit
1389d373a0
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user