vhsdev
vhsdev
CDCloudflare Developers
Created by vhsdev on 1/22/2025 in #general-help
Hello World CI error with workers-sdk + vitest integration
Anyone else seen the error? I feel like this should be obvious:
test/app.test.ts:

# Unhandled error between tests
-------------------------------
error: Cannot find package 'cloudflare:test' from '/home/runner/work/private-landing/private-landing/test/app.test.ts'
-------------------------------
test/app.test.ts:

# Unhandled error between tests
-------------------------------
error: Cannot find package 'cloudflare:test' from '/home/runner/work/private-landing/private-landing/test/app.test.ts'
-------------------------------
Asked about it yesterday on GH but no nibbles yet so I thought I'd ask here too. Is this a bug? Left a minimal repro using a c3 scaffolded hello world and can't seem to run tests through a CI run. Has anyone else seen this module resolution error with the workers Vitest Integration? Link to Discussions thread with minimal repro: https://github.com/cloudflare/workers-sdk/discussions/7834 https://github.com/vhscom/c3-minimal-workerd-ci-error Thanks to anyone with input.
1 replies