Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -0,0 +1,12 @@
|
||||
// @vitest-environment node
|
||||
import { readFileSync } from "node:fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
describe("search RLS artifact", () => {
|
||||
const sql = readFileSync(new URL("../../../prisma/rls/search-isolation.sql", import.meta.url), "utf8");
|
||||
|
||||
it("uses the canonical tenant context set by withTenantRLS", () => {
|
||||
expect(sql).toContain("current_setting('app.tenant_id', true)");
|
||||
expect(sql).not.toContain("app.current_tenant_id");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user