Skip to content

Commit

Permalink
formatted docs/README.md for easy copy (#3295)
Browse files Browse the repository at this point in the history
  • Loading branch information
Axwaizee committed Jan 28, 2024
1 parent fb8ee7a commit 468c8aa
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@ First time using Node.js? You may want to start with the [tutorial](tutorial.md)

First install Node.js >= 18 from [nodejs.org](https://nodejs.org/) then:

`npm install mineflayer`
```bash
npm install mineflayer
```

To update mineflayer (or any Node.js) package and its dependencies, use `npm update --depth 9999`
To update mineflayer (or any Node.js) package and its dependencies, use
```bash
npm update --depth 9999
```

## Documentation

Expand Down Expand Up @@ -248,17 +253,36 @@ The most updated and useful are :

### Testing everything

Simply run: `npm test`
Simply run:

```bash
npm test
```

### Testing specific version
Run `npm run mocha_test -- -g <version>`, where `<version>` is a minecraft version like `1.12`, `1.15.2`...
Run

```bash
npm run mocha_test -- -g <version>
```

where `<version>` is a minecraft version like `1.12`, `1.15.2`...

### Testing specific test
Run `npm run mocha_test -- -g <test_name>`, where `<test_name>` is a name of the test like `bed`, `useChests`, `rayTrace`...
Run

```bash
npm run mocha_test -- -g <test_name>
```

where `<test_name>` is a name of the test like `bed`, `useChests`, `rayTrace`...

### Example

`npm run mocha_test -- -g "1.18.1.*BlockFinder"` to run the block finder test for 1.18.1
```bash
npm run mocha_test -- -g "1.18.1.*BlockFinder"
```
to run the block finder test for 1.18.1

## License

Expand Down

0 comments on commit 468c8aa

Please sign in to comment.