Skip to content

Commit

Permalink
Fix regressed test
Browse files Browse the repository at this point in the history
  • Loading branch information
poltak committed Jun 4, 2024
1 parent 6682e6e commit 70d704a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/background-script/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export function createBackgroundModules(options: {
fetchPDFData: (fullPageUrl: string) => Promise<ExtractedPDFData>
auth?: AuthBackground
analyticsManager: Analytics
captureException?: typeof captureException
captureException: typeof captureException
// userMessageService?: UserMessageService
getNow?: () => number
fetch: typeof fetch
Expand Down
1 change: 1 addition & 0 deletions src/tests/background-integration-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export async function setupBackgroundIntegrationTest(
persistentStorageManager,
analyticsManager,
localStorageChangesManager: null,
captureException,
serverStorage,
browserAPIs,
services,
Expand Down
5 changes: 5 additions & 0 deletions src/tools/storage-explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import inMemory from '@worldbrain/storex-backend-dexie/lib/in-memory'
import DeprecatedStorageModules from 'src/background-script/deprecated-storage-modules'
import { createAuthServices } from 'src/services/local-services'
import { CloudflareImageSupportBackend } from '@worldbrain/memex-common/lib/image-support/backend'
import type { ExceptionCapturer } from '@worldbrain/memex-common/lib/firebase-backend/types'

type CommandLineArguments =
| { command: 'list-collections' }
Expand Down Expand Up @@ -53,6 +54,9 @@ async function main() {
if (typeof window === 'undefined') {
global['URL'] = URL
}
const captureException: ExceptionCapturer = async (err) => {
console.warn('Got error in content sharing backend', err.message)
}

const authServices = createAuthServices({
backend: 'memory',
Expand All @@ -76,6 +80,7 @@ async function main() {
services,
analyticsManager: null,
storageManager,
captureException,
persistentStorageManager,
localStorageChangesManager: null,
browserAPIs: {
Expand Down

0 comments on commit 70d704a

Please sign in to comment.