An open API service indexing awesome lists of open source software.

https://github.com/maximeheckel/gojest

A standalone binary to run Go tests using the Jest platform and jest-runner-go
https://github.com/maximeheckel/gojest

golang jest testing

Last synced: 10 months ago
JSON representation

A standalone binary to run Go tests using the Jest platform and jest-runner-go

Awesome Lists containing this project

README

          






Gojest


A standalone binary to run Go tests using the Jest platform


https://asciinema.org/a/OQ8MQDGYNiQ2aqUECvGk061ZD

## Usage

### Install

If you want to get the latest version of Gojest you can either download the binaries from the project page or install them using Docker by running the following:

For macOS:
```bash
docker pull maximeheckel/gojest:latest &&
id=$(docker create maximeheckel/gojest:latest) &&
docker cp $id:/gojest-macos /usr/local/bin/gojest && (docker rm $id >/dev/null)
```

For Linux:
```bash
docker pull maximeheckel/gojest:latest &&
id=$(docker create maximeheckel/gojest:latest) &&
docker cp $id:/gojest-linux /usr/local/bin/gojest && (docker rm $id >/dev/null)
```

For Windows:
```bash
docker pull maximeheckel/gojest:latest &&
id=$(docker create maximeheckel/gojest:latest) &&
docker cp $id:/gojest-win.exe gojest.exe && (docker rm $id >/dev/null)
```
### Contribute

1. `git pull git@github.com:MaximeHeckel/gojest.git` (preferably in your GOPATH if you want to run the examples on your machine)
2. Run `npm install` or `yarn` to install the dependencies of the project
3. To run use: `node index.js`
4. To Build the project run: `yarn build`