V25 · Firebase emulator thật hơn

Đưa Firestore security rules vào bộ kiểm thử gần thật hơn.

V25 chuẩn hóa package, helper và scenario để chuyển từ scaffold sang rules-unit-testing thật trong emulator.

Package

@firebase/rules-unit-testing

6 case · succeeds 2 · fails 4

participant · get

participant-can-read-own-profile

assertSucceedsparticipants/p-demo-001

participant-private-own-subtree

participant · get

participant-cannot-read-other-submission

assertFailsparticipants/p-demo-002/r4Submissions/sub-other

participant-private-other-subtree-deny

organization_observer · get

organization-can-read-aggregate-only

assertSucceedscohorts/cohort-demo-001/aggregateSnapshots/snapshot-demo-001

aggregate-only

organization_observer · get

organization-cannot-read-raw-submission

assertFailsparticipants/p-demo-001/r4Submissions/sub-demo-001

raw-answer-deny

admin · update

admin-cannot-update-audit-event

assertFailsauditEvents/audit-demo-001

audit-append-only

anonymous · get

anonymous-cannot-read-private-participant

assertFailsparticipants/p-demo-001

anonymous-private-deny