Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed Feb 10, 2024
1 parent 90e2f22 commit 4619e33
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,12 @@ $ mix deps.get
$ mix test
```

Running the Javascript tests:
Running all JavaScript tests:
```bash
$ npm run test
```

Running the JavaScript unit tests:

```bash
$ cd assets
Expand All @@ -176,4 +181,23 @@ $ npm run test
$ npm run test.watch
```

or simply:

```bash
$ npm run js:test
```

Running the JavaScript end-to-end tests:

```bash
$ npm run e2e:test
```

Checking test coverage:

```bash
$ npm run cover
$ npm run cover:report
```

JS contributions are very welcome, but please do not include an updated `priv/static/phoenix_live_view.js` in pull requests. The maintainers will update it as part of the release process.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"js:test": "cd assets && npm install && npm run test",
"test": "npm run js:test && npm run e2e:test",
"cover:merge": "node js-coverage.mjs",
"cover": "npm run test && npm run cover:merge"
"cover": "npm run test && npm run cover:merge",
"cover:report": "npx monocart show-report cover/merged-js/index.html"
}
}

0 comments on commit 4619e33

Please sign in to comment.