Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(auth): separate environment administration permissions #9786

Mergedjuliusmarmingemerged 76 commits intot3code/auth-pairing-scopes fromrefs/pull/9786/headmerged by juliusmarminge View on GitHub

Showing 162 changed files with 132 additions and 12 deletions (loading 160).

x
0 of 162 viewed, 162 left
114 additions and 1 deletionapps/mobile/src/features/agent-awareness/liveActivityPreferences.test.tsModified
View file
@@ -25,7 +25,14 @@
Platform: { OS: "ios" },
}));
​
-vi.mock("../cloud/linkEnvironment", () => ({
+vi.mock("expo-constants", () => ({
+ default: { expoConfig: {} },
+}));
+​
+vi.mock("expo-device", () => ({}));
+​
+vi.mock("../cloud/linkEnvironment", async (importOriginal) => ({
+ ...(await importOriginal<typeof import("../cloud/linkEnvironment")>()),
linkEnvironmentToCloudWithPreference: vi.fn(() => Effect.void),
}));
​
@@ -78,6 +85,7 @@
previousEnabled: true,
clerkToken: "clerk-token",
connections: [connection],
+ canConfigureEnvironment: () => true,
});
​
expect(updateAgentAwarenessRegistrationPreferences).toHaveBeenCalledWith({
@@ -98,6 +106,7 @@
previousEnabled: false,
clerkToken: "clerk-token",
connections: [connection],