test-utils icon indicating copy to clipboard operation
test-utils copied to clipboard

chore: fix URL must be file:// protocol error in e2e tests

Open JessicaSachs opened this issue 7 months ago โ€ข 2 comments

๐Ÿ”— Linked issue

โ“ Type of change

  • [ ] ๐Ÿ“– Documentation (updates to the documentation or readme)
  • [ ] ๐Ÿž Bug fix (a non-breaking change that fixes an issue)
  • [ ] ๐Ÿ‘Œ Enhancement (improving an existing functionality)
  • [ ] โœจ New feature (a non-breaking change that adds functionality)
  • [x] ๐Ÿงน Chore (updates to the build process or auxiliary tools and libraries)
  • [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to change)

๐Ÿ“š Description

I couldn't run the E2E Example tests because the configs use fileURLToPath without a file:// protocol. It's just trying to resolve the rootDir up a directory, so this PR swaps to using resolve

JessicaSachs avatar Jun 17 '25 22:06 JessicaSachs

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/test-utils@1331

commit: ad6495b

pkg-pr-new[bot] avatar Jun 17 '25 22:06 pkg-pr-new[bot]

in what environment do they not work? can you give me more info on how to reproduce?

the tests work for me locally on macos, as well as in CI on linux + windows

danielroe avatar Jun 18 '25 10:06 danielroe