Skip to content

Commit

Permalink
Refactor order of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Huggins committed Sep 11, 2020
1 parent fa8787b commit 218f0bc
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ An intuitive wrapper for Mocha targeting Deno, supporting both JavaScript and Ty

## Usage

### Installation

Install `deno_mocha` using [`deno_run`](https://github.com/aaronhuggins/deno_run).
```shell
# Installation will prompt you to accept permisisons.
deno_run install https://deno.land/x/deno_mocha/
```

> If using Deno CLI to install directly, please see `manifest.ts` for required permissions.
### Command-line Interface

Write your mocha tests in a folder named `test`, importing `deno_mocha` module at the top of each test script.
Expand All @@ -18,12 +28,6 @@ describe('Sample TS', () => {
})
```

Install `deno_mocha` using [`deno_run`](https://github.com/aaronhuggins/deno_run).
```shell
# Installation will prompt you to accept permisisons.
deno_run install https://deno.land/x/deno_mocha/
```

Execute `deno_mocha`; it will find test scripts named according to Mocha conventions and execute them.
```shell
> deno_mocha
Expand Down

0 comments on commit 218f0bc

Please sign in to comment.