Running ‘make test’ results in:
TypeError: shim$1.Parser.looksLikeNumber is not a function.
Just did make test and I could get the test output.
npm verbose cli /usr/local/bin/node /usr/local/bin/npm
npm info using [email protected]
npm info using [email protected]
npm verbose title npm test app.test.js
npm verbose argv "test" "--forceExit" "--loglevel" "verbose" "app.test.js"
npm verbose logfile logs-max:10 dir:/root/.npm/_logs/2025-07-15T22_49_22_708Z-
npm verbose logfile /root/.npm/_logs/2025-07-15T22_49_22_708Z-debug-0.log
> test
> jest --verbose app.test.js
PASS ./app.test.js
Usability Tests (Unmocked origin.js)
✓ GET / => 200, no auth required (24 ms)
✓ GET /admin without Authorization header should return 401 (2 ms)
✓ GET /admin => 403 when no valid token or internal request (1 ms)
✓ GET /admin => 200 with "Bearer admin-secret" (2 ms)
Usability test for internal requests testing
✓ GET /admin => 200 for internal requests when req.isInternalRequest is true (1 ms)
Test Suites: 1 passed, 1 total
Tests: 5 passed, 5 total
Snapshots: 0 total
Time: 0.377 s
Can you send more details and output of what you run? Ensure you are in the middleware.js dir and do make build before hand.