Open mgermerie opened 6 months ago
Trying to run unit tests on Node current version (21.5.0) brings warnings and errors :
navigator.userAgent
if (!global.navigator) { global.navigator = { userAgent: 'firefox' } }
(node:29868) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
npm install
npm run test-unit
The first point is fixed in #2255.
Can confirm that this issue starts with node >= 21.0.0, latest LTS (20.x.x) is not impacted.
node >= 21.0.0
20.x.x
Your Environment
Context
Trying to run unit tests on Node current version (21.5.0) brings warnings and errors :
navigator.userAgent
property which has been made read-only in node 21.1.0 (see this commit. This can be easily fixed with a test :Steps to Reproduce (for bugs)
npm install
npm run test-unit
Possible Cause/Fix/Solution
The first point is fixed in #2255.