fix: Web test's launch.json configuration

Open
#78 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript, vscode
Domain
devtools

Research direction

Start with .vscode/launch.json lines 60-76 and the behavior described in PR 77. Compare how the Node and web test suites handle environment variables and file schemes, then run the browser test suite through the launch configuration. Done means the web tests can be debugged in Chromium using the vscode-test-web:// scheme.

Written by the indexing model from the issue text.

Description

enhancement

Regarding https://github.com/openfga/vscode-ext/pull/77

I have not been able to get the launch.json configuration to run & debug the test suite in a browser. The test suite doenst appear to accept a ENV var like the test suite does for the node variation, and the extension in web mode doesnt use the browser's file scheme.

Development mode for Node -> file://
Development mode for Web -> file://
Chromium Browser -> vscode-test-web://

This means we can't easily debug the web tests via launch.json:
https://github.com/openfga/vscode-ext/blob/main/.vscode/launch.json#L60-L76

Dominant language
TypeScript
Stars
22
Forks
7
Avg merge
1d 12h
Merged PRs (30d)
14

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openfga/vscode-ext

All issues in openfga/vscode-ext

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.