diff --git a/content/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.md b/content/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.md index 0c83a64270139ff..ce9f35a49a267f1 100644 --- a/content/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.md +++ b/content/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.md @@ -29,7 +29,7 @@ First, you will need to uninstall the old environment and install the new pool. ```sh $ npm uninstall vitest-environment-miniflare -$ npm install --save-dev --save-exact vitest@1.3.0 +$ npm install --save-dev --save-exact vitest@1.5.0 $ npm install --save-dev @cloudflare/vitest-pool-workers ``` @@ -233,4 +233,4 @@ filename: index.spec.js - const ids = await getMiniflareDurableObjectIds("OBJECT"); + const ids = await listDurableObjectIds(env.OBJECT); }); -``` \ No newline at end of file +``` diff --git a/content/workers/testing/vitest-integration/get-started/write-your-first-test.md b/content/workers/testing/vitest-integration/get-started/write-your-first-test.md index f2a0f5abf5a2b8f..6bf7e2d11708614 100644 --- a/content/workers/testing/vitest-integration/get-started/write-your-first-test.md +++ b/content/workers/testing/vitest-integration/get-started/write-your-first-test.md @@ -23,7 +23,7 @@ This guide will instruct you through installing and setting up the `@cloudflare/ Open a terminal window and make sure you are in your project's root directory. Once you have confirmed that, run: ```sh -$ npm install vitest@1.3.0 --save-dev --save-exact +$ npm install vitest@1.5.0 --save-dev --save-exact $ npm install @cloudflare/vitest-pool-workers --save-dev ``` @@ -31,7 +31,7 @@ The above commands will add the packages to your `package.json` file and install {{}} @@ -287,4 +287,4 @@ it("responds with not found and proper status for /404", async () => { ## Related resources -- [`@cloudflare/vitest-pool-workers` GitHub repository](https://github.com/cloudflare/workers-sdk/tree/main/fixtures/vitest-pool-workers-examples) - Examples of tests using the `@cloudflare/vitest-pool-workers` package. \ No newline at end of file +- [`@cloudflare/vitest-pool-workers` GitHub repository](https://github.com/cloudflare/workers-sdk/tree/main/fixtures/vitest-pool-workers-examples) - Examples of tests using the `@cloudflare/vitest-pool-workers` package.