Ashrith
Ashrith
CDCloudflare Developers
Created by Ashrith on 7/5/2024 in #durable-objects
Apologies, I should have been more clear
Thanks @milan that is something i missed in the docs, reconnect is something that is needed, any recommended ways to handle this?
4 replies
CDCloudflare Developers
Created by Ashrith on 4/3/2024 in #workers-help
Need some help on collecting coverage in workers.
This issue is with the latest version of vitest, raised an issue there! if anyone using 1.4.0 please use 1.3.0
4 replies
CDCloudflare Developers
Created by Ashrith on 4/3/2024 in #workers-help
Need some help on collecting coverage in workers.
Running the test in the hello world template for the example test provided
4 replies
CDCloudflare Developers
Created by Ashrith on 4/3/2024 in #workers-help
Need some help on collecting coverage in workers.
Adding additional Information Created a worker using bun create cloudflare\@2.5.0 My vitest.config.ts
import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config';

export default defineWorkersConfig({
test: {
coverage: {
provider: 'istanbul'
},
poolOptions: {
workers: {
wrangler: { configPath: './wrangler.toml' },
},
},
},
});
import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config';

export default defineWorkersConfig({
test: {
coverage: {
provider: 'istanbul'
},
poolOptions: {
workers: {
wrangler: { configPath: './wrangler.toml' },
},
},
},
});
My package.json dev deps
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.1.0",
"@cloudflare/workers-types": "^4.20240402.0",
"@vitest/coverage-istanbul": "^1.4.0",
"typescript": "^5.0.4",
"vitest": "1.3.0",
"wrangler": "^3.0.0"
}
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.1.0",
"@cloudflare/workers-types": "^4.20240402.0",
"@vitest/coverage-istanbul": "^1.4.0",
"typescript": "^5.0.4",
"vitest": "1.3.0",
"wrangler": "^3.0.0"
}
4 replies