Skip to content

fix integration test suite#145

Merged
godronus merged 1 commit into
mainfrom
fix/tests
Jun 30, 2026
Merged

fix integration test suite#145
godronus merged 1 commit into
mainfrom
fix/tests

Conversation

@godronus

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 30, 2026 09:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the integration test suite for the CLI tools (fastedge-build and fastedge-assets) by changing how test files resolve paths to package.json.

Changes:

  • Removed the ES module __dirname shim (dirname(fileURLToPath(import.meta.url))) and its imports in two integration tests.
  • Left package.json resolution still referencing __dirname, which will break test execution in ESM contexts.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
integration-tests/fastedge-build.test.js Removes ESM __dirname setup but still uses __dirname to read package.json.
integration-tests/fastedge-assets.test.js Removes ESM __dirname setup but still uses __dirname to read package.json.

Comment on lines 1 to 4
import { spawnSync } from 'node:child_process';
import { readFileSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { join } from 'node:path';

Comment on lines 1 to 3
import { readFileSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { join } from 'node:path';

@godronus godronus merged commit 81145a9 into main Jun 30, 2026
9 checks passed
@godronus godronus deleted the fix/tests branch June 30, 2026 09:32
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants