Skip to content

Conversation

@leslie-lau
Copy link
Contributor

No description provided.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 16, 2025

Deploying devcycle-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: beec667
Status: ✅  Deploy successful!
Preview URL: https://db7e787b.devcycle-docs.pages.dev
Branch Preview URL: https://mock-testing.devcycle-docs.pages.dev

View logs

@leslie-lau leslie-lau marked this pull request as ready for review January 6, 2026 21:50
Copilot AI review requested due to automatic review settings January 6, 2026 21:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new "Mock Testing" documentation page to help developers test their applications with DevCycle feature flags without making API calls. The page provides comprehensive examples for both server-side and client-side SDKs, along with best practices.

  • Added comprehensive mock testing documentation with code examples for Python and JavaScript
  • Created new sidebar icon and styling for the mock testing page
  • Reorganized sidebar navigation to position mock testing before SDK lifecycle
  • Removed sidebar_position from features.md and lifecycle.md to allow manual ordering

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/sdk/mock-testing.md New comprehensive documentation page covering mock testing strategies for both server-side (Cloud Bucketing) and client-side SDKs with code examples
static/sidebar/mock-testing.svg New SVG icon for the mock testing sidebar entry
src/css/custom.css Added CSS rule to apply the mock-testing icon to the sidebar
sidebars.js Moved SDK Lifecycle entry below new SDK Mock Testing entry and removed the old position
docs/sdk/lifecycle.md Removed sidebar_position to allow manual ordering in sidebars.js
docs/sdk/features.md Removed sidebar_position to allow manual ordering in sidebars.js

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

const devcycleClient = initializeDevCycle(
'<DEVCYCLE_CLIENT_SDK_KEY>',
user,
{ bootstrapConfig }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd love for us to provide documentation on what goes in the bootstrapconfig, we don't really provide that anywhere.

this should also link to the bootstrap docs

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't, the bootstrap config is the server config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants