testing and validation
There is no automated test runner. package.json "test" prints Error: no test specified and exits 1. Validation is test.html plus watching __hit logs.
What exists#
flowchart TB testHtml[test.html] --> login[student_login] login --> live[fill_feedback_form] comments[commented blocks] --> att[attendance] comments --> exam[exams] comments --> grade[grades]
run_server is required for Web Crypto.
Suggested manual path#
flowchart TD
A[login] --> B{LoginError?}
B -->|yes| stop[stop]
B -->|no| C[get_attendance_meta]
C --> D[get_sgpa_cgpa]
D --> E[get_registered_semesters]
E --> F[get_semesters_for_exam_events]Uncomment the matching blocks in test.html instead of using the live fill_feedback_form line if you only want reads.
Catch LoginError as the file already does.
__hit noise#
Every call logs the fetch options, including Authorization. Do not paste console dumps.
Build sanity#
npm run build
ls dist/
Expect jsjiit.esm.js, jsjiit.min.esm.js, and two .map files. Import the min bundle from a throwaway page if you are about to publish.
flowchart LR src[src] --> esb[esbuild] esb --> dist[dist] dist --> page[manual import]
No CI workflow runs tests. The only GitHub Action is JSDoc.