logic: Returns mockContext instead of creating a new proxy like the production version - this means the proxy target never changes, which could cause issues if tests expect context === setContext(newCtx)
export const setContext = (newContext: GlobalContext): GlobalContext => {
mockContextStore.set('context', newContext)
return newContext
}
Originally posted by @greptile-apps[bot] in #355 (comment)
logic: Returns
mockContextinstead of creating a new proxy like the production version - this means the proxy target never changes, which could cause issues if tests expectcontext === setContext(newCtx)Originally posted by @greptile-apps[bot] in #355 (comment)