mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-10 03:28:14 +00:00
test(web): simplify onboarding analytics mock
This commit is contained in:
parent
dc96090bc1
commit
4d91f632de
1 changed files with 9 additions and 5 deletions
|
|
@ -132,11 +132,14 @@ mock.module("@lib/constants", () => ({
|
|||
SHARED_TEAM_BRAIN_TAG: "sm_org_shared",
|
||||
}))
|
||||
|
||||
mock.module("@/lib/analytics", () => ({
|
||||
analytics: new Proxy({} as Record<string, () => void>, {
|
||||
get: () => () => {},
|
||||
}),
|
||||
}))
|
||||
mock.module("@/lib/analytics", () => {
|
||||
const target: Record<string, () => void> = {}
|
||||
return {
|
||||
analytics: new Proxy(target, {
|
||||
get: () => () => {},
|
||||
}),
|
||||
}
|
||||
})
|
||||
|
||||
mock.module("@/lib/company-brain-entry", () => ({
|
||||
resolveCompanyBrainEntry: () => ({ action: "create" }),
|
||||
|
|
@ -317,3 +320,4 @@ describe("onboarding draft ownership", () => {
|
|||
)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue