-
Notifications
You must be signed in to change notification settings - Fork 79
E2E testing #10
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
Merged
Merged
E2E testing #10
Changes from 12 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3272747
rolling back one version of sdk
geelen 78d8a45
using a Hono MCP server
geelen a473d18
wat
geelen 55fa14c
gearing up for integration testing
geelen 0b06658
Amp test suite
geelen 0ea5e50
Adding headed tests
geelen 25ad29e
Back to latest SDK
geelen d0fb4a8
Incredible, 1.13.2 was the problem?
geelen 00968a8
Moving test state file out of git. Bit weird it needs this in the fir…
geelen 8470a3a
feat: add comprehensive integration test suite with browser automation
geelen e1e60bc
Claude also tried and failed to figure out how to clean up the child …
geelen b7574e1
Adding GH action
geelen 5f83cc5
unvibe my code. say you'll love me again
geelen 1f82d7c
really need to tell Amp to run prettier every time it saves...
geelen ba16952
shakes fist
geelen ae10802
havent committed cf-agents example yet
geelen fb1bdd1
gotta get playwright going
geelen 1a19780
fixes
geelen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 8 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '18' | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies - root | ||
| run: pnpm install | ||
|
|
||
| - name: Install dependencies - inspector example | ||
| run: pnpm install | ||
| working-directory: examples/inspector | ||
|
|
||
| - name: Install dependencies - cf-agents example | ||
| run: pnpm install | ||
| working-directory: examples/servers/cf-agents | ||
|
|
||
| - name: Install dependencies - hono-mcp example | ||
| run: pnpm install | ||
| working-directory: examples/servers/hono-mcp | ||
|
|
||
| - name: Install dependencies - test | ||
| run: pnpm install | ||
| working-directory: test | ||
|
|
||
| - name: Run tests | ||
| run: pnpm test | ||
| working-directory: test | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,3 @@ dist | |
| .aider* | ||
|
|
||
| **/.claude/settings.local.json | ||
| public | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # prod | ||
| dist/ | ||
|
|
||
| # dev | ||
| .yarn/ | ||
| !.yarn/releases | ||
| .vscode/* | ||
| !.vscode/launch.json | ||
| !.vscode/*.code-snippets | ||
| .idea/workspace.xml | ||
| .idea/usage.statistics.xml | ||
| .idea/shelf | ||
|
|
||
| # deps | ||
| node_modules/ | ||
| .wrangler | ||
|
|
||
| # env | ||
| .env | ||
| .env.production | ||
| .dev.vars | ||
|
|
||
| # logs | ||
| logs/ | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| pnpm-debug.log* | ||
| lerna-debug.log* | ||
|
|
||
| # misc | ||
| .DS_Store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| ```txt | ||
| npm install | ||
| npm run dev | ||
| ``` | ||
|
|
||
| ```txt | ||
| npm run deploy | ||
| ``` | ||
|
|
||
| [For generating/synchronizing types based on your Worker configuration run](https://developers.cloudflare.com/workers/wrangler/commands/#types): | ||
|
|
||
| ```txt | ||
| npm run cf-typegen | ||
| ``` | ||
|
|
||
| Pass the `CloudflareBindings` as generics when instantiation `Hono`: | ||
|
|
||
| ```ts | ||
| // src/index.ts | ||
| const app = new Hono<{ Bindings: CloudflareBindings }>() | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "name": "vengabus", | ||
| "scripts": { | ||
| "dev": "wrangler dev", | ||
| "deploy": "wrangler deploy --minify", | ||
| "cf-typegen": "wrangler types --env-interface CloudflareBindings" | ||
| }, | ||
| "dependencies": { | ||
| "hono": "^4.8.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@hono/mcp": "^0.1.0", | ||
| "@modelcontextprotocol/sdk": "^1.13.1", | ||
| "wrangler": "^4.21.0", | ||
| "zod": "^3.25.67" | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.