Skip to content

Commit b6393fd

Browse files
committed
flatten
1 parent 0ea8523 commit b6393fd

File tree

5 files changed

+7
-56
lines changed

5 files changed

+7
-56
lines changed

src/content/docs/workers/testing/unit-testing.mdx

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/content/docs/workers/testing/vitest-integration/get-started/index.mdx renamed to src/content/docs/workers/testing/vitest-integration/migration-guides/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
pcx_content_type: navigation
3-
title: Get started
3+
title: Migration Guides
44
sidebar:
55
order: 1
66
group:
77
hideIndex: true
88
head: []
9-
description: Install and set up the Workers Vitest integration.
9+
description: Migrate to using the Workers Vitest integration.
1010
---
1111

1212
import { DirectoryListing } from "~/components";

src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx renamed to src/content/docs/workers/testing/vitest-integration/migration-guides/migrate-from-miniflare-2.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Migrate from Miniflare 2's test environments
3-
pcx_content_type: concept
3+
pcx_content_type: how-to
44
sidebar:
55
order: 2
66
head: []
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
22
title: Migrate from unstable_dev
3-
pcx_content_type: concept
3+
pcx_content_type: how-to
44
sidebar:
55
order: 3
66
head: []
77
description: Migrate from the
88
[`unstable_dev`](/workers/wrangler/api/#unstable_dev) API to writing tests
99
with the Workers Vitest integration.
10-
1110
---
1211

1312
The [`unstable_dev`](/workers/wrangler/api/#unstable_dev) API has been a recommended approach to run integration tests. The `@cloudflare/vitest-pool-workers` package integrates directly with Vitest for fast re-runs, supports both unit and integration tests, all whilst providing isolated per-test storage.
@@ -50,7 +49,7 @@ Via the `unstable_dev` API, you can reference a [Wrangler configuration file](/w
5049

5150
```js
5251
await unstable_dev("src/index.ts", {
53-
config: "wrangler.toml",
52+
config: "wrangler.toml",
5453
});
5554
```
5655

@@ -92,4 +91,4 @@ You can remove `UnstableDevWorker` imports from your code. Instead, follow the [
9291

9392
## Related resources
9493

95-
* [Write your first test](/workers/testing/vitest-integration/get-started/write-your-first-test/#define-types) - Write unit tests against Workers.
94+
- [Write your first test](/workers/testing/vitest-integration/get-started/write-your-first-test/#define-types) - Write unit tests against Workers.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pcx_content_type: concept
44
sidebar:
55
order: 1
66
head: []
7-
description: Write unit tests against Workers.
7+
description: Write tests against Workers using Vitest
88
---
99

1010
import {

0 commit comments

Comments
 (0)