🐛 BUG: vitest-pool-workers: Pages project with pages_build_output_dir
in wrangler.toml
fails
#5768
Labels
bug
Something that isn't working
pages
Relating to Pages
pages-config
wrangler.toml support for Pages related issues
vitest
Relating to the Workers Vitest integration
Which Cloudflare product(s) does this pertain to?
Wrangler core
What version(s) of the tool(s) are you using?
3.35.1
What version of Node are you using?
20.11.0
What operating system and version are you using?
Mac Sonoma 14.4
Describe the Bug
Observed behavior
Test process exits with error "Pages doesn't currently support JSON formatted config
/my-project/wrangler.toml
. Please use wrangler.toml instead." when run in a pages project withwrangler.toml
containingpages_build_output_dir
Expected behavior
Should run tests normally
Please provide a link to a minimal reproduction
https://github.com/osaton/temp-black-waterfall-44dc
Please provide any relevant error logs
First
unstable_getMiniflareWorkerOptions
passesexperimentalJsonConfig: true
toreadConfig
which throws atpackages/wrangler/src/config/index.ts:100
because ofexperimantalJsonConfig
check:Which makes me think if the
|| args.experimentalJsonConfig
part is even needed here? we have already parsed the config based on the file extension, so we know that the config is not in JSON format, so maybeisPagesConfigFile && configPath?.endsWith("json")
would be sufficient here?The text was updated successfully, but these errors were encountered: