Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 30, 2025

MSW 2.11.6 introduced a new dependency until-async that uses ES modules, causing Jest to fail parsing with SyntaxError: Unexpected token 'export'.

Changes

  • Added until-async to the transformPackages list in test/jest-config.ts to ensure Jest transforms this ES module dependency to CommonJS

This fixes the test failure in variant-analysis/gh-api/gh-api-client.test.ts and restores the test suite to passing state.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copy link
Contributor Author

Copilot AI commented Oct 30, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • update.code.visualstudio.com
    • Triggering command: node /home/REDACTED/work/vscode-codeql/vscode-codeql/extensions/ql-vscode/node_modules/.bin/jest --projects test/vscode-tests/activated-extension (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Update msw version from 2.7.4 to 2.11.6 Fix Jest errors after MSW upgrade to 2.11.6 Oct 30, 2025
Copilot AI requested a review from cklin October 30, 2025 21:48
Copilot finished work on behalf of cklin October 30, 2025 21:48
@cklin cklin marked this pull request as ready for review October 30, 2025 22:15
@cklin cklin requested a review from a team as a code owner October 30, 2025 22:15
Copilot AI review requested due to automatic review settings October 30, 2025 22:15
@cklin cklin merged commit f2fed20 into dependabot/npm_and_yarn/extensions/ql-vscode/msw-2.11.6 Oct 30, 2025
44 of 46 checks passed
@cklin cklin deleted the copilot/sub-pr-4181 branch October 30, 2025 22:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the "until-async" package to the list of packages that should be transformed during Jest testing. This is necessary to ensure proper handling of ES modules during test execution.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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