Skip to content

Documentation for MDL-88762 - #1613

Merged
mihailges merged 1 commit into
moodle:mainfrom
andrewnicols:MDL-88762
Oct 4, 2026
Merged

mihailges merged 1 commit into
moodle:mainfrom
andrewnicols:MDL-88762

Conversation

@andrewnicols

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 12, 2026 05:12
@netlify

netlify Bot commented Jun 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for moodledevdocs ready!

Name Link
🔨 Latest commit 2d3aba5
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/6ac10a980893840008e36762
😎 Deploy Preview https://deploy-preview-1613--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the React/Jest testing documentation and introduces a reusable FileTree React component to render directory structures consistently across DevDocs.

Changes:

  • Added src/components/FileTree to render an ASCII tree from a structured object (with optional inline comments).
  • Updated docs/guides/javascript/react/testing.md to use the new FileTree component instead of hardcoded tree code blocks.
  • Expanded and reorganized the “Mocking” guidance and added a new “Handling redirects” section.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/components/FileTree/index.tsx Adds a reusable component for rendering directory/file trees inside Docusaurus CodeBlocks.
docs/guides/javascript/react/testing.md Replaces static tree examples with <FileTree /> and extends mocking/redirect testing guidance.

Comment thread docs/guides/javascript/react/testing.md Outdated
Comment thread docs/guides/javascript/react/testing.md
@andrewnicols

Copy link
Copy Markdown
Member Author

@mihailges , You were the integrator on the related issue> Any chance you can review + merge this?

@mihailges mihailges left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks Andrew, the change looks good to me.

@mihailges
mihailges added this pull request to the merge queue Oct 4, 2026
Merged via the queue into moodle:main with commit d8f8ba5 Oct 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants