Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 4, 2026

The test file was using require("vitest") which fails in CommonJS modules. Vitest must be imported using ES6 import syntax.

Changes

  • Updated file_helpers.test.cjs to use import statement for vitest test functions

Before

const { describe, it, expect, beforeEach, afterEach } = require("vitest");

After

import { describe, it, expect, beforeEach, afterEach } from "vitest";

This aligns with all other test files in the repository.

Original prompt

Reference: https://github.com/githubnext/gh-aw/actions/runs/20694222642/job/59406899228#step:6:1

Fix js tests

FAIL file_helpers.test.cjs [ file_helpers.test.cjs ]


✨ 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 self-assigned this Jan 4, 2026
Copilot AI changed the title [WIP] Fix JavaScript tests in file_helpers Fix vitest import in file_helpers.test.cjs Jan 4, 2026
Copilot AI requested a review from pelikhan January 4, 2026 14:28
@pelikhan pelikhan marked this pull request as ready for review January 4, 2026 14:29
@pelikhan pelikhan merged commit 1a72c21 into main Jan 4, 2026
4 checks passed
@pelikhan pelikhan deleted the copilot/fix-js-tests branch January 4, 2026 14:29
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