This is a proposal for the Katas Node.js test made by Sébastien Abbal based on node.js language with Typescript.
To start, create a .env
file with this format. (Don't forget to put your Krates ID)
NODE_ENV="dev"
KRATES_ID="xxxxxxxxxxxxxxxxxxxx"
Now you have to run some commands to init the project.
$ yarn
$ yarn build
Well done ! :)
$ yarn run_bigparsing_confirmed 62359
# Will return `Damon Jerde`
$ yarn run_data_correction_junior
# Will generate a final.json file on ./data/data_correction_junior directory
To test all the app with jest, you need to run this command line:
$ yarn test
# Test Suites: 4 passed, 4 total
# Tests: 8 passed, 8 total
# Snapshots: 0 total
# Time: 16.605 s
# Ran all test suites.
# ✨ Done in 18.60s.