From d33d61e26db9c0b52500ef775ba32d402dc6023c Mon Sep 17 00:00:00 2001 From: Robert Hall Date: Thu, 26 Jul 2018 10:44:32 -0600 Subject: [PATCH] Better instructions on tests and linking --- README.md | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 057bc6791c..857e1d233e 100644 --- a/README.md +++ b/README.md @@ -158,20 +158,20 @@ npm run dev You can make changes locally to Svelte and test it against any Svelte project. You can also use a [default template](https://github.com/sveltejs/template) for development. Instruction on setup are found in that project repository. -From the root of your local svelte git checkout: +From your project: ```bash -npm link +cd ~/path/to/your-svelte-project +npm install ~/path/to/svelte ``` -Then, to link from your Svelte project: +And you should be good to test changes locally. -``` -cd your-svelte-project -npm link svelte -``` +To undo this and link to the official latest Svelte release, just run: -And you should be good to test changes locally. +```bash +npm install svelte@latest +``` ### Running Tests @@ -179,6 +179,14 @@ And you should be good to test changes locally. npm run test ``` +For running single tests, you can use pattern matching: + +```bash +npm run test -- -g "includes AST in svelte.compile output" +``` + +Alternately, you can add `solo: true` to any given `test/../_config.js` file, but **remember never to commit that setting.** + ## License [MIT](LICENSE)