Install dependencies using npm
:
npm install
Due to a bug in highlight.js
, you'll also need to run the following:
cp node_modules/highlight.js/types/index.d.ts node_modules/highlight.js/lib/core.d.ts
Run unit tests
npm run test
Generate test exams and serve them:
npm run gen-test-exams
npm run serve-test-exams
In a separate terminal, run cypress tests:
npm run cypress:run
Or open cypress UI to run/inspect tests:
npm run cypress:open
(Note that this launches a GUI. If you're on WSL you might need to look into getting an X server set up.)
Update version number in package.json
.
tsc
npm publish