@cloudflare/vitest-pool-workers 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # `@cloudflare/vitest-pool-workers`
2
+
3
+ The Workers Vitest integration allows you to write Vitest tests that run inside the Workers runtime.
4
+ Refer to the [documentation](https://developers.cloudflare.com/workers/testing/vitest-integration/) and [examples](https://github.com/cloudflare/workers-sdk/tree/main/fixtures/vitest-pool-workers-examples/) for more information.
5
+
6
+ - ✅ Supports both **unit tests** and **integration tests**
7
+ - 📚 Provides direct access to Workers runtime APIs and bindings
8
+ - đŸ“Ļ Implements isolated per-test storage
9
+ - đŸ”Ĩ Runs tests fully-locally using [Miniflare](https://miniflare.dev/)
10
+ - âšĄī¸ Leverages Vitest's hot-module reloading for near instant reruns
11
+ - â†Šī¸ Provides a declarative interface for mocking outbound requests
12
+ - 🧩 Supports projects with multiple Workers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/vitest-pool-workers",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "main": "dist/pool/index.mjs",
5
5
  "types": "test/cloudflare-test.d.ts",
6
6
  "exports": {
@@ -33,8 +33,8 @@
33
33
  "devalue": "^4.3.0",
34
34
  "esbuild": "0.17.19",
35
35
  "zod": "^3.20.6",
36
- "miniflare": "3.20240304.1",
37
- "wrangler": "3.34.0"
36
+ "miniflare": "3.20240304.2",
37
+ "wrangler": "3.34.2"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@vitest/runner": "1.3.0",