- Fork this project
- update
package.json
, maintain your own packagename
, and other information likeauthor
. - maintain the
author
in thetraining.config.json
- start your work
- maintain the
specs
in thetraining.config.json
file npm run download
to get the latest tests casesnpm run test
& generate the test cases in thesrc/cases
directory for training- adjust the generated cases & make all test cases passed
- commit & push to github, then github will automatic check your cases
- maintain the
role
in thetraining.config.json
file - maintain the
specs
in thetraining.config.json
file, replace thetraining001
with a unique id likecorp-a-b-training-001
- maintain the
specs
definitions insrc/tests
likesrc/tests/basics/sum-1.js
- self test
npm run upload
to publish- share the
specs
link to your trainees
This project is integrated github with workflow, once you fork/update your repository (on github), the workflow will be executed automaticly.
This project will lint the commit message, just ref this document
This project will lint the javascript style by eslint, but the code could be automatic fixed by vscode predefined configuration
This project is based on the Jest
test framework