Skip to content

test: fix tests as recent change was not caught because of .skip condition#6999

Merged
pieh merged 1 commit into
mainfrom
test/fix-and-run-ef-tarball-tests
Mar 20, 2026
Merged

test: fix tests as recent change was not caught because of .skip condition#6999
pieh merged 1 commit into
mainfrom
test/fix-and-run-ef-tarball-tests

Conversation

@pieh

@pieh pieh commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

🎉 Thanks for submitting a pull request! 🎉

Summary

Fixes #<replace_with_issue_number>


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures
    your code follows our style guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

@coderabbitai

coderabbitai Bot commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 288d2654-3e0f-42c2-a376-2ffc5f8bf115

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test/fix-and-run-ef-tarball-tests
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

})

describe.skipIf(lt(denoVersion, '2.4.3'))(
describe.skipIf(lt(denoVersion, '2.4.2'))(

@pieh pieh Mar 20, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We run tests in CI with 2.4.2

deno-version: ['v2.4.2']
so this was not running on PRs for some time

This was bumped in #6684 (without bumping used version in github action or our "minimal" supported deno version) but it was only relevant to deno bundle specific issue which we don't use anymore.

As we don't need 2.4.3 for current method I opted to keep our minimal deno version and version in CI and instead walk back this skip condition

expect(entries).toContain('___netlify-edge-functions.json')
expect(entries).toContain('deno.json')
expect(entries).toContain('func1.ts')
expect(entries).toContain('./___netlify-edge-functions.json')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The need to change existing tests was introduced in #6990 but not caught because CI did not run them.

The tarball bundles still work fine, just paths are slightly different

@@ -1,4 +1,4 @@
import { getMessage } from './@file_prefixed_with_the_at_symbol.ts'
import { getMessage } from '../../@file_prefixed_with_the_at_symbol.ts'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the location of @file_prefixed_with_the_at_symbol.ts was treated as function and failing because there is no default export (request handler), so just moved this file out of netlify/edge-functions directory

@pieh pieh marked this pull request as ready for review March 20, 2026 10:24
@pieh pieh requested a review from a team as a code owner March 20, 2026 10:24
@pieh pieh changed the title test: fix tests as recent change was not caught up because of .skip condition test: fix tests as recent change was not caught because of .skip condition Mar 20, 2026
@pieh pieh merged commit 87a52e5 into main Mar 20, 2026
56 of 57 checks passed
@pieh pieh deleted the test/fix-and-run-ef-tarball-tests branch March 20, 2026 10:31
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