Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 29, 2025

  • Explore the repository structure and understand the testing framework architecture
  • Review how @cross/runtime detects browser environment (supports Runtime.Browser)
  • Verify existing tests pass on Deno
  • Design browser shim that works without external dependencies
  • Implement browser shim (shims/browser.ts) following existing patterns
  • Update mod.ts to conditionally load browser shim when Runtime.Browser is detected
  • Export browser-specific helper functions (getTestResults, printTestSummary)
  • Add browser-specific documentation to README
  • Run code review and address feedback
  • Run codeql security scan (no issues found)
  • Update README example to use JSR import via esm.sh CDN
  • Bump version to 0.0.15 for browser support release
Original prompt

Explore if its possible to add a browser mode, to run tests using the exact same framework in browsers. Explore how it could be made practically without added dependencies or too much code overhead. Use jsr:@cross/runtime if a dependency for determinating runtime is needed.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 29, 2025 00:18
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Copilot AI changed the title [WIP] Explore adding browser mode for testing framework Add browser mode for running tests in browsers Nov 29, 2025
Copilot AI requested a review from Hexagon November 29, 2025 00:21
@Hexagon
Copy link
Member

Hexagon commented Nov 29, 2025

@copilot In the example, use the latest version from jsr in the readme/docs example

Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 29, 2025

@copilot In the example, use the latest version from jsr in the readme/docs example

Updated the example to import from https://esm.sh/jsr/@cross/test which provides direct browser access to the latest JSR version without requiring bundling. (0ef194d)

@Hexagon Hexagon marked this pull request as ready for review November 29, 2025 00:31
@Hexagon
Copy link
Member

Hexagon commented Nov 29, 2025

@copilot bump relevant version if not already bumped since last release

Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 29, 2025

@copilot bump relevant version if not already bumped since last release

Bumped version from 0.0.14 to 0.0.15 for the browser support release. (023e518)

Copilot AI requested a review from Hexagon November 29, 2025 00:35
@Hexagon Hexagon merged commit 8f197f0 into main Nov 29, 2025
10 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.

2 participants