Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Downgrade ts-jest and jest to support older Node version #168

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

hmuurine
Copy link
Collaborator

@hmuurine hmuurine commented Mar 20, 2023

Relevant components:

  • Signalling server
  • Frontend library
  • Frontend UI library
  • Matchmaker
  • Platform scripts
  • SFU

Problem statement:

The script in platform_scripts/cmd/run_local.bat installs NodeJS version 16.4.2, which is not compatible with ts-jest version 28.0.0 or newer. f58b32c installed ts-jest 29.0.5, which resulted in Unsupported engine errors if using NodeJS 16.4.2. See issue: #167

The versions of all Jest packages need to be downgraded to 27.x.y series, which are compatible with NodeJS version 16.4.2.

Solution

Downgraded ts-jest package to version 27.1.5, which is the latest version that supports Node 16.4.2. Also downgraded jest and jest-environment-jsdom to the latest 27 series version to fulfill ts-jest 27 requirements.

Documentation

No changes in documentation.

Test Plan and Compatibility

Ran npm install and npm run test with NodeJS 16.4.2 and verified that there were no longer complaints about NodeJS version mismatch. Verified that the unit tests worked like before with the downgraded Jest version.

Copy link
Contributor

@lukehb lukehb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm!

@lukehb lukehb merged commit d1ebee7 into EpicGames:master Mar 20, 2023
lukehb added a commit that referenced this pull request Mar 23, 2023
* Downgrade ts-jest and jest to support older Node version (#168)

* Downgrade ts-jest and jest to support older Node version

* bumbed ts-jest to 27.1.5 (latest 27.x.y)

* Bump lib-pixelstreamingfrontend to 0.3.0

Signed-off-by: Luke Bermingham <1215582+lukehb@users.noreply.github.com>

* Bump lib-pixelstreamingfrontend-ui to 0.2.0 update dep versions

Signed-off-by: Luke Bermingham <1215582+lukehb@users.noreply.github.com>

* Bump versions in package-lock.json for ui-library

* Bump ui-library to 0.2.0 and force NPM publish

* Update UE version printed when Cirrus starts

Signed-off-by: Luke Bermingham <1215582+lukehb@users.noreply.github.com>

* Bump Github release of 5.2 infra to 0.4.0

Signed-off-by: Luke Bermingham <1215582+lukehb@users.noreply.github.com>

* Fix: sfu player would try subscribing when sfu disconnected

* Updating the Frontend Docs (#152)

---------

Signed-off-by: Luke Bermingham <1215582+lukehb@users.noreply.github.com>
Co-authored-by: hmuurine <hmuurine@users.noreply.github.com>
Co-authored-by: William Belcher <william.belcher@xa.epicgames.com>
Co-authored-by: Michael Stopa <michael.stopa@xa.epicgames.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants