You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate Jest test suite to Jest 30 + jsdom 26 (#2475)
* test: migrate Jest test suite to Jest 30 + jsdom 26
Follows the core OpenSearch-Dashboards upgrade
(opensearch-project/OpenSearch-Dashboards#12381). Full suite green under
Jest 30.4.2 / jsdom 26.1.0.
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
* test: map jose to its CommonJS build in server jest config
Under Jest 30's stricter package 'exports' resolution, 'import { SignJWT } from jose'
in the jwt_auth / jwt_multiauth integration tests resolved to jose's pure-ESM browser
build (dist/browser/index.js), failing with 'SyntaxError: Unexpected token export'.
Pin '^jose$' to the CommonJS build (dist/node/cjs/index.js) the 'require' condition
uses. The suites now load correctly (remaining failures require a live OpenSearch cluster).
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
* test: wrap jose moduleNameMapper line to satisfy prettier print-width
The single-line '^jose$' mapping exceeded the 100-char print width; wrap the value
onto its own line so prettier/prettier passes in CI (OSD-core prettier 3.5.x).
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
---------
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
0 commit comments