Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 852 Bytes

contributing.md

File metadata and controls

51 lines (34 loc) · 852 Bytes

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

Running Unit Tests

Run unit tests

npm run test

Run Cypress Tests

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.)

Publishing to npm

Update version number in package.json.

tsc
npm publish