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
- Host: GitHub
- URL: https://github.com/maximeheckel/gojest
- Owner: MaximeHeckel
- License: mit
- Created: 2017-11-24T03:25:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-05T07:14:56.000Z (over 8 years ago)
- Last Synced: 2025-04-02T01:36:54.025Z (about 1 year ago)
- Topics: golang, jest, testing
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`