Closed as not planned
Closed as not planned
Description
Version
18.19.0
Platform
Linux ua0683ea36b1857.ant.amazon.com 5.15.0-91-generic #101~20.04.1-Ubuntu SMP Thu Nov 16 14:22:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
various
What steps will reproduce the bug?
I'm seeing various failures in our CI builds after upgrading 18.18.0 to 18.19.0, including an error for a flag that is deprecated in node 20.6.0
(tsx 3) errors on flag deprecated in 20
$ node -v
v18.19.0
$ npx tsx@3 index.ts
node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
Error: tsx must be loaded with --import instead of --loader
The --loader flag was deprecated in Node v20.6.0
at X (file:///home/ANT.AMAZON.COM/calebev/tmp/node_modules/tsx/dist/esm/index.mjs:1:1920)
at Hooks.addCustomLoader (node:internal/modules/esm/hooks:202:24)
at Hooks.register (node:internal/modules/esm/hooks:168:16)
at async initializeHooks (node:internal/modules/esm/utils:167:5)
at async customizedModuleWorker (node:internal/modules/esm/worker:104:24)
Node.js v18.19.0
(jest 28) TypeError: Cannot assign to read only property 'performance' of object '[object global]'
$ node -v
v18.19.0
$ echo "jest.useFakeTimers()" > jest.test.js
$ npx jest@28 jest.test.js
FAIL ./jest.test.js
● Test suite failed to run
TypeError: Cannot assign to read only property 'performance' of object '[object global]'
> 1 | jest.useFakeTimers()
| ^
2 |
at hijackMethod (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:946:32)
at Object.install (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1733:17)
at FakeTimers.useFakeTimers (node_modules/@jest/fake-timers/build/modernFakeTimers.js:110:36)
at Object.<anonymous> (jest.test.js:1:21)
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
No breaking changes between minor versions of an LTS release
What do you see instead?
Breaking changes, including a reference to a flag that is deprecated in a greater major version.
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels