https://github.com/vroudge/test-cartguru
A test to get in Cart-guru
https://github.com/vroudge/test-cartguru
Last synced: 3 months ago
JSON representation
A test to get in Cart-guru
- Host: GitHub
- URL: https://github.com/vroudge/test-cartguru
- Owner: vroudge
- Created: 2018-06-23T09:27:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-23T15:39:28.000Z (almost 7 years ago)
- Last Synced: 2025-02-05T06:34:05.697Z (4 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# test-cartguru
A little game for cartguru ;)
## Install & Start:To install all dependencies, run
```bash
npm install
```Then to run the game with the default input file, just run
```js
npm start
```Run the tests with
```bash
npm test
```## Streaming the logs instead of a report
You can use the flag `OUTPUT_MODE=stream` to stream all the logs instead of just getting the final report of the game run.
ie: `OUTPUT_MODE=stream node index.js`
## Inputs
You might want to try some other inputs!
- Either you can modify the `input` file in the project directory
- Or you can run the script with a location argument to pass it one of the test inputs in the `/src/lib/test/` directory```bash
node index.js --location='/src/lib/test/correct.input.spec'
```## Notes
- You can set the MAX_RETRIES variable when running the `index.js` script
to not get stuck in an infinite loop if your input cannot be won.
-