Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@

## Usage

You can create a new SvelteKit project with this add-on using the following command:

```sh
npx sv create --add @msw/sveltekit
```

Or integrate MSW add-in into an existing project with this one:

```shell
npx sv add @msw
npx sv add @msw/sveltekit
```

## What you get
Expand All @@ -26,7 +34,7 @@ Choose where MSW should run. This is a multiselect option.
Default: `browser,node`

```shell
npx sv add @msw="environments:browser,node"
npx sv add @msw/sveltekit="environments:browser,node"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paoloricciuti, this is the right way to provide environments to the add-on, right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's like this 👍

```

## Browser worker
Expand Down
Loading