hasura-tests
Installation
SKILL.md
hasura-tests
Overview
Per hasura.io/docs/2.0/auth/authorization/quickstart/, Hasura permissions are configured per table, role, and operation (select / insert / update / delete), with row- filter expressions and column-level scopes.
The testable concerns are different from Apollo / Yoga:
- Permission rules are declarative; tests verify the rule produces the expected filter SQL.
- Roles + session variables drive everything; tests inject
x-hasura-role+ custom claims and assert the response shape. - Metadata is the source of truth; tests apply a fixture metadata then run queries.