Skip to main content

workers-testing

Provides a comprehensive guide for testing Cloudflare Workers using Vitest, enabling efficient unit and integration testing.

Install this skill

or
54/100

Security score

The workers-testing skill was audited on Feb 9, 2026 and we found 18 security issues across 3 threat categories, including 2 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

high line 663

Direct command execution function call

SourceSKILL.md
663await env.DB.exec(`
high line 674

Direct command execution function call

SourceSKILL.md
674await env.DB.exec(schema);
low line 320

Fetch to external URL

SourceSKILL.md
320const response = await stub.fetch('http://fake/increment');
low line 470

Fetch to external URL

SourceSKILL.md
470await stub.fetch('http://fake/increment');
low line 474

Fetch to external URL

SourceSKILL.md
474const response = await stub.fetch('http://fake/value');
low line 139

External URL reference

SourceSKILL.md
139const request = new Request('http://example.com/');
low line 320

External URL reference

SourceSKILL.md
320const response = await stub.fetch('http://fake/increment');
low line 344

External URL reference

SourceSKILL.md
344const request = new Request('http://example.com/api/users', {
low line 395

External URL reference

SourceSKILL.md
395const request = new Request('http://example.com/api/users', {
low line 420

External URL reference

SourceSKILL.md
420const req1 = new Request('http://example.com/api/data');
low line 428

External URL reference

SourceSKILL.md
428const req2 = new Request('http://example.com/api/data');
low line 444

External URL reference

SourceSKILL.md
444const request = new Request('http://example.com/upload', {
low line 470

External URL reference

SourceSKILL.md
470await stub.fetch('http://fake/increment');
low line 474

External URL reference

SourceSKILL.md
474const response = await stub.fetch('http://fake/value');
low line 520

External URL reference

SourceSKILL.md
520const request = new Request('http://example.com/api', {
low line 564

External URL reference

SourceSKILL.md
564worker.fetch(new Request('http://example.com/'), env, createExecutionContext())
low line 601

External URL reference

SourceSKILL.md
601const request = new Request('http://example.com/test');
low line 604

External URL reference

SourceSKILL.md
604const request = new Request('http://fake-host/test'); // Host doesn't matter in tests
Scanned on Feb 9, 2026
View Security Dashboard
Installation guide →