@cosmicdrift/kumiko-bundled-features 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +57 -0
- package/package.json +3 -3
- package/src/audit/__tests__/audit.integration.ts +2 -2
- package/src/auth-email-password/__tests__/account-lockout-no-redis.integration.ts +5 -5
- package/src/auth-email-password/__tests__/account-lockout.integration.ts +5 -5
- package/src/auth-email-password/__tests__/auth-claims.integration.ts +14 -14
- package/src/auth-email-password/__tests__/auth.integration.ts +8 -8
- package/src/auth-email-password/__tests__/email-verification.integration.ts +5 -5
- package/src/auth-email-password/__tests__/identity-v3-login.integration.ts +5 -5
- package/src/auth-email-password/__tests__/invite-flow.integration.ts +6 -6
- package/src/auth-email-password/__tests__/multi-roles.integration.ts +5 -5
- package/src/auth-email-password/__tests__/password-reset.integration.ts +5 -5
- package/src/auth-email-password/__tests__/public-routes-rate-limit.integration.ts +5 -5
- package/src/auth-email-password/__tests__/seed-admin.integration.ts +5 -5
- package/src/auth-email-password/__tests__/session-callbacks.integration.ts +5 -5
- package/src/auth-email-password/__tests__/signup-flow.integration.ts +6 -6
- package/src/cap-counter/__tests__/cap-counter.integration.ts +2 -2
- package/src/cap-counter/__tests__/with-cap-enforcement.integration.ts +2 -2
- package/src/config/__tests__/config.integration.ts +2 -2
- package/src/delivery/__tests__/delivery-events.integration.ts +4 -4
- package/src/delivery/__tests__/delivery.integration.ts +4 -4
- package/src/feature-toggles/__tests__/feature-toggles.integration.ts +5 -5
- package/src/feature-toggles/__tests__/registered-system-tenant.test.ts +84 -0
- package/src/feature-toggles/handlers/registered.query.ts +7 -2
- package/src/file-foundation/__tests__/file-foundation.integration.ts +4 -4
- package/src/jobs/__tests__/job-system-user.integration.ts +3 -3
- package/src/jobs/__tests__/jobs-events.integration.ts +2 -2
- package/src/jobs/__tests__/jobs-feature.integration.ts +3 -3
- package/src/legal-pages/__tests__/legal-pages.integration.ts +3 -3
- package/src/mail-foundation/__tests__/mail-foundation.integration.ts +4 -4
- package/src/secrets/__tests__/rotate.integration.ts +2 -2
- package/src/secrets/__tests__/secrets-events.integration.ts +2 -2
- package/src/secrets/__tests__/secrets.integration.ts +2 -2
- package/src/sessions/__tests__/cleanup.integration.ts +2 -2
- package/src/sessions/__tests__/password-auto-revoke.integration.ts +6 -6
- package/src/sessions/__tests__/sessions.integration.ts +6 -6
- package/src/tenant/__tests__/multi-tenant.integration.ts +4 -4
- package/src/tenant/__tests__/seed-testing.integration.ts +4 -4
- package/src/tenant/__tests__/tenant.integration.ts +4 -4
- package/src/tenant/seeding.ts +12 -1
- package/src/text-content/README.md +6 -2
- package/src/text-content/__tests__/text-content.integration.ts +2 -2
- package/src/tier-engine/__tests__/resolver.integration.ts +183 -0
- package/src/tier-engine/__tests__/tier-engine.integration.ts +5 -5
- package/src/tier-engine/feature.ts +345 -48
- package/src/tier-engine/index.ts +5 -1
- package/src/user/__tests__/seed-testing.integration.ts +4 -4
- package/src/user/__tests__/user.integration.ts +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createEntityTable,
|
|
3
2
|
createTestUser,
|
|
4
3
|
setupTestStack,
|
|
5
4
|
type TestStack,
|
|
6
5
|
TestUsers,
|
|
6
|
+
unsafeCreateEntityTable,
|
|
7
7
|
} from "@cosmicdrift/kumiko-framework/stack";
|
|
8
8
|
import { expectErrorIncludes } from "@cosmicdrift/kumiko-framework/testing";
|
|
9
9
|
import { afterAll, beforeAll, beforeEach, describe, expect, test } from "vitest";
|
|
@@ -18,7 +18,7 @@ const userFeature = createUserFeature();
|
|
|
18
18
|
|
|
19
19
|
beforeAll(async () => {
|
|
20
20
|
stack = await setupTestStack({ features: [userFeature] });
|
|
21
|
-
await
|
|
21
|
+
await unsafeCreateEntityTable(stack.db, userEntity);
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
afterAll(async () => {
|