Skip to content

Conversation

Copy link
Contributor

Copilot AI commented May 20, 2025

This PR fixes the CI failures by updating the Jest configuration to be compatible with newer versions of Jest and babel-jest.

Changes made

  1. Updated jest-preprocess.js to fix compatibility with babel-jest 29.x

    • Removed the .default from require("babel-jest").default.createTransformer(babelOptions) which is not needed in the newer version
  2. Updated jest.config.js to add proper testEnvironmentOptions

    • Added testEnvironmentOptions: { url: 'http://localhost' } to provide proper URL configuration for the jsdom environment
  3. Updated the CI workflow to explicitly install the required test environment dependency

    • Added a step to install jest-environment-jsdom which is needed for the tests but not included by default in Jest 28+

These changes allow the tests to run successfully in the CI environment without modifying any actual application code.

Fixes #9.

Warning

Firewall rules blocked me from connecting to one or more addresses

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

  • cdn.fwupd.org
    • Triggering command: /usr/bin/fwupdmgr refresh (dns block)

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


💡 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.

Copilot AI changed the title [WIP] CI is failing Fix CI failures by updating Jest configuration May 20, 2025
Copilot AI requested a review from dbachko May 20, 2025 23:07
Copy link
Owner

@dbachko dbachko left a comment

Choose a reason for hiding this comment

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

Nice

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.

CI is failing

2 participants