Skip to content

docs: fix makeUsingStub example to use join(import.meta.dirname)#14

Open
matisbag wants to merge 2 commits intoadonisjs:mainfrom
matisbag:fix/make-using-stub-url-type
Open

docs: fix makeUsingStub example to use join(import.meta.dirname)#14
matisbag wants to merge 2 commits intoadonisjs:mainfrom
matisbag:fix/make-using-stub-url-type

Conversation

@matisbag
Copy link

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

The makeUsingStub method expects a string as its first argument (as per its type definition), but the scaffolding example passes a URL object directly.
This causes a TypeScript type error.

@matisbag matisbag force-pushed the fix/make-using-stub-url-type branch from a6e7d30 to 5d87202 Compare March 19, 2026 10:24
@matisbag matisbag force-pushed the fix/make-using-stub-url-type branch from 5d87202 to 09552f2 Compare March 19, 2026 10:27
@matisbag matisbag changed the title docs: fix makeUsingStub example to use URL.pathname docs: fix makeUsingStub example to use join(import.meta.dirname) Mar 19, 2026
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.

2 participants