From 5ca7858ace3e6f8cead823a29fa62b91681a73d1 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 7 Mar 2022 19:30:03 +0100 Subject: [PATCH] docs: use npm init @latest (#12561) --- README.md | 4 ++-- docs/src/intro-js.md | 4 ++-- docs/src/release-notes-js.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4c071b8a02..687d094b89 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,9 @@ The easiest way to get started with Playwright Test is to run the init command. ```Shell # Run from your project's root directory -npm init playwright +npm init playwright@latest # Or create a new project -npm init playwright new-project +npm init playwright@latest new-project ``` This will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section. diff --git a/docs/src/intro-js.md b/docs/src/intro-js.md index ec0b7f4096..c0e63a8c9f 100644 --- a/docs/src/intro-js.md +++ b/docs/src/intro-js.md @@ -30,9 +30,9 @@ The easiest way to get started with Playwright Test is to run the init command. ```bash # Run from your project's root directory -npm init playwright +npm init playwright@latest # Or create a new project -npm init playwright new-project +npm init playwright@latest new-project ``` This will create a configuration file, optionally add examples, a GitHub Action workflow and a first test `example.spec.ts`. You can now jump directly to [writing assertions](#writing-assertions) section. diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md index 715754b421..02f707a9a7 100644 --- a/docs/src/release-notes-js.md +++ b/docs/src/release-notes-js.md @@ -124,9 +124,9 @@ The `npm init playwright` command is now generally available for your use: ```sh # Run from your project's root directory -npm init playwright +npm init playwright@latest # Or create a new project -npm init playwright new-project +npm init playwright@latest new-project ``` This will create a Playwright Test configuration file, optionally add examples, a GitHub Action workflow and a first test `example.spec.ts`.