microsoft / microsoft/vscode-extension-test-runner

"type": "module" in package.json causes GetVSyncParametersIfAvailable errors which prevents tests to run successfully

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
17
Forks
15
Avg merge
2d 5h
Merged PRs (30d)
2

Description

When I set "type": "module", in package.json I am unable to run tests because of the following error right after launching the VSCode extension test instance:

[19028:0729/235118.503632:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

As soon as I remove the line, the tests run fine. But I need it because of some dependencies which I don't know how to import otherwise.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with package.json and the VS Code extension test launch path, reproducing the failure with "type": "module" and comparing it with the configuration that runs successfully without it. Done means the extension tests launch successfully while retaining the module setting, with the dependency import requirement understood and documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript, vscode
Domain
devtools, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.