-
Notifications
You must be signed in to change notification settings - Fork 24
Create mock testing page #946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Deploying devcycle-docs with
|
| Latest commit: |
beec667
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://db7e787b.devcycle-docs.pages.dev |
| Branch Preview URL: | https://mock-testing.devcycle-docs.pages.dev |
There was a problem hiding this 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_positionfrom 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 } |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
No description provided.