Skip to content

Commit

Permalink
Add /etc/hosts file prerequisite (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
markcellus committed Aug 18, 2022
1 parent a807378 commit ea61b64
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm install cookie-store@next

```js
// import polyfill and declare types
import {cookieStore} from 'cookie-store';
import { cookieStore } from 'cookie-store';

// set a cookie
await cookieStore.set('forgive', 'me');
Expand All @@ -37,3 +37,15 @@ console.log(cookies); // [{ name: 'forgive', value: 'me' }, { name: 'forget', va
// delete a cookie
await cookieStore.delete('forget');
```

## Development

### Tests

Before running tests, you'll need to add the following entry to your `/etc/hosts` file on your machine:

```
127.0.0.1 foo.bar.localhost
```

Then run `npm test`

0 comments on commit ea61b64

Please sign in to comment.