René's URL Explorer Experiment


Title: improvement(tests): db-mock migration tranche 4 — billing, webhooks/execution/logs, routes/misc (final) by waleedlatif1 · Pull Request #5866 · simstudioai/sim · GitHub

Open Graph Title: improvement(tests): db-mock migration tranche 4 — billing, webhooks/execution/logs, routes/misc (final) by waleedlatif1 · Pull Request #5866 · simstudioai/sim

X Title: improvement(tests): db-mock migration tranche 4 — billing, webhooks/execution/logs, routes/misc (final) by waleedlatif1 · Pull Request #5866 · simstudioai/sim

Description: Summary Migrate the final 43 test suites off private vi.mock('@sim/db', ) implementations onto the shared dbChainMock + queueTableRows API — net ~−1,165 lines (final tranche; prior tranches #5861/#5863/#5864, mock consolidation #5856) Clusters: lib/billing/** remainder (threshold-billing, enterprise-provisioning, seats/locks), lib/webhooks/** + lib/execution/** + lib/logs/**, misc app/api routes + lib/table + knowledge connectors + executor agent suites Zero private @sim/db factories remain in the codebase — every suite now configures the single shared instance, eliminating the rival-mock class that blocked shared-worker (isolate: false) test execution Type of Change Improvement Testing Full apps/sim suite green locally (13704/13705; sole failure is the known local ripgrep dependency, green in CI). Every file verified standalone, per-cluster, and with neighbor sweeps (lib/billing 445 tests, webhooks/execution/logs 1001, routes/misc 527). tsc + biome clean. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Migrate the final 43 test suites off private vi.mock('@sim/db', <factory>) implementations onto the shared dbChainMock + queueTableRows API — net ~−1,165 lines (final tranche...

X Description: Summary Migrate the final 43 test suites off private vi.mock(&#39;@sim/db&#39;, &lt;factory&gt;) implementations onto the shared dbChainMock + queueTableRows API — net ~−1,165 line...

Opengraph URL: https://github.com/simstudioai/sim/pull/5866

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:69572af1-0e6b-855e-0a3f-72557fe7b847
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDAE8:3A9142:29841C:38CC64:6A6397B7
html-safe-noncef0d83041294327a58cfa007925738745cd2dadc0fe7accfb3893acdca85f9e2d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUU4OjNBOTE0MjoyOTg0MUM6MzhDQzY0OjZBNjM5N0I3IiwidmlzaXRvcl9pZCI6IjQ1NDc1ODI4ODU5OTUxOTAxOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac859877d9495955471e1d4a8d225807112d1560ca3197de8f6a08527d8105fe3f
hovercard-subject-tagpull_request:4112261360
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5866/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Migrate the final 43 test suites off private vi.mock('@sim/db', <factory>) implementations onto the shared dbChainMock + queueTableRows API — net ~−1,165 lines (final tranche...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4ca676e17c4da4532dc68541e9fc874034ae840c26b5f34da7f1c42d9a600659
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3a0a9f049e072eb8e5795dfddcefdba9e277501d
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5866/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5866%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5866%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5866/files
Reloadhttps://github.com/simstudioai/sim/pull/5866/files
Reloadhttps://github.com/simstudioai/sim/pull/5866/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5866/files
simstudioai https://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Notifications https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Fork 3.7k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Star 29.2k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Code https://github.com/simstudioai/sim
Issues 111 https://github.com/simstudioai/sim/issues
Pull requests 121 https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality 0 https://github.com/simstudioai/sim/security
Insights https://github.com/simstudioai/sim/pulse
Code https://github.com/simstudioai/sim
Issues https://github.com/simstudioai/sim/issues
Pull requests https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality https://github.com/simstudioai/sim/security
Insights https://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
test/db-mock-migration-4https://github.com/simstudioai/sim/tree/test/db-mock-migration-4
Conversation 8 https://github.com/simstudioai/sim/pull/5866
Commits 2 https://github.com/simstudioai/sim/pull/5866/commits
Checks 19 https://github.com/simstudioai/sim/pull/5866/checks
Files changed https://github.com/simstudioai/sim/pull/5866/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5866/files
improvement(tests): db-mock migration tranche 4 — billing, webhooks/execution/logs, routes/misc (final) https://github.com/simstudioai/sim/pull/5866/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/5866/files
e82171d improvement(tests): db-mock migration tranche 4 — billing, webhooks/e… waleedlatif1 Jul 22, 2026 https://github.com/simstudioai/sim/pull/5866/commits/e82171db2e4b9b5f53454338709aada5821fc5c9
63ea1ef fix(tests): route agent-handler MCP server rows through queueTableRows waleedlatif1 Jul 22, 2026 https://github.com/simstudioai/sim/pull/5866/commits/63ea1ef2fc5790798624fb9d8492bdfc359ca20b
Clear filters https://github.com/simstudioai/sim/pull/5866/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5866/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5866/files
route.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
route.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-426f0cc11fcb02d3b9ab0d35eaa6decce992f6cd5242e6d19a74df4a2029cf79
route.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-2b95ef7c7ebb2aafe5dee7ffe292c5784e965540fb30c25a60348114c0296fa2
route.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-10ea63349fd1980d6a84f137f79471e8d92193013634e9d4ba7d5db53cd231a6
route.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-abe2d82096a46c3ac03385a3d2a916d5625096b660ab6f59ab2ef06984bea974
auth.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-b91f3b3a837b5d97cf16451c4bdeb0071cda051e5b1e763cc9b19faa8c1626e7
agent-handler.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-5fa11051a09b82360438ce6a447b4eeb6faa66fa2f668ce615f81fb4ea906f07
skills-resolver.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-21a8949271021d1ae6680b17de53429874124407d305dca5c7b14b8a2dc821d0
authorization.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-e32d0406322a32b70d49913a1801f573b00f0e834ad37c6bf103f024049bae40
usage-monitor.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-ccc1372b58f250bc7662d09f888006a56be80ac2855f61612ec6554a5b511ea7
cleanup-dispatcher.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-848a4862ef8b78aa0a0f0bb8ec316cee73c6a01543d8d863c0c692792565f4af
billing-attribution.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-4679aa2dbd6cc32b134b3acdbbbab3efaab19d0f8eafe62cee9e60a93539ce7a
limit-notifications.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-c0d948c5e1b54ef3234355000232cab4f6cedc57daa54665674ab825ca74c702
enterprise-provisioning.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-f334d222a608fc85db8b5d3f1de831959526566f02ee459f1c282591082b05a2
member-limits.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-49ce84500c932008748bb8c3cb95492bfad78c57d742138cef25afe20a615a8d
provision-seat.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-abfcd3fbbc1fe25f375e964e67c4cd8d46b472c440f280465872daa14c6f405c
seat-drift.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-d7c2ecdd9e19ad6b04de4bf90ad9e81319c36ec83bcb3a56cdb8da4fb7b704dd
seats.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-dfa8443e6a4e93d8e68195a286f4437527da1f810cf2a33f4d0ac05bdf58c9a5
limits.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-d71e6663992e2e80919df12fb4d73ff5208f92cbe80ddc1a17f82a46f429339a
threshold-billing.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-0a556e94a761637cee781316dd74e4c28f780959e9bbc5c03273c92624f2d682
enterprise-reconciliation-lease.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-0ef96ceb42f2bac9aa38ff4fe79b130c414295fbd58f35169a63e8f44d0b2983
outbox-handlers.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-a17a5d108b91cb62cdf876f7c2ba84deaba58cc24d6d40a571258f864bbe76db
access.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-21f0c71e582953b325d308c9f7f2f1e2a29dbbeb4c3851f16d9cdc5a4426c2e2
large-value-metadata.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-7bdb2f2111d2967d23d2085c99f71360fd864d5ea30be18b4ec8192216d83927
preprocessing.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-bf810ff832cf89c1bf98cfe2ecb746f021b88001dc8a0bd0732de89cb289089a
preprocessing.webhook-correlation.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-3812c2c227fd1aca4e2339a323cc1119c38d0e81cd3bb60421f36f3916a1a91f
summary.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-14540faf0536bf9a56c065d18a6f59be5335d34644659b6dcdbfada00f3616e0
queue.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-6ea21bcc90345a76b17c89a5a511c774cd781e37b26549691e1e098bcb115bb0
sync-engine.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-021afebf7e100833ecdc940e307263436964ce85ef3dfd40fc90307a1d115534
logger.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-8c4f5ac108be5428c5d49656f82f56b6b45192e331adf3e402db58e1cda8e064
logging-session.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-b801a3e7faa08a7816dee0ee9dc4be20c2c9e971d6f77a7d6c7c78e6f9b7b18d
list-logs.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-e43db0d12c3a4b4dedc54d978c02bd8516c23c56e349461281eb7d1ecdef60b5
revoke.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-9141de4ac0edfc2350705d5dcbdb47f819796bd1f692a6c1f81c4e5be91e3d95
cell-write.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-0292944126e4718fda7829c6cfce842cd5186c3a4954e9d2ce0d04a534d9c91c
snapshot-cache.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-b59c69350b78a1cb4dc725a68b89018dfad37910668ee84e923b5c2920bf65e4
deploy.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-47af430cbada5debea9e9a1162eeed4c44aeefd6ba487eca66da235948717f2d
utils.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-2b5593a52f8bf848c6b918e1e5f8b122d25055f95275b16e2fe335942fe91b38
processor.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-ba6e1a44cdb94ccfcc4f6c6c96e2f28ad8e08f49903062d74f913a57f657ab94
whatsapp.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-a3cbf515d0f0835d691fb662e0de446f48fb2389734f4d2fa6251a5e022c23b6
registration-store.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-e0f4ccfd538d106122ac48919442435d06d603d78611360f62c205da6f7922d6
utils.server.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-767bf516795633a010b4266723a9adb0aa90d97a5e5446021fedc87d0689d7b3
lifecycle.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-52e715fb28a8144b4785501503fcca4060500761a211728d19abcf2673af800a
organization-workspaces.test.ts https://github.com/simstudioai/sim/pull/5866/files#diff-419064a92ec5189f1fadf161d331af8bc8ec0ec4ee52a1b006a7b7f453211c11
apps/sim/app/api/auth/sso/register/route.test.tshttps://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
View file https://github.com/simstudioai/sim/blob/63ea1ef2fc5790798624fb9d8492bdfc359ca20b/apps/sim/app/api/auth/sso/register/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5866/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
https://github.com/simstudioai/sim/pull/5866/files#diff-602d449104f41ae830209c664a5903824479c317da461304f5980b61630df01e
Please reload this pagehttps://github.com/simstudioai/sim/pull/5866/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5866/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.