Description
Testing suite belongs in this repo so that it can be locked globally instead of in the CI stages.
Makes it a heck of a lot easier to run tests locally as well, and out of the box.
Probably best to start with @^26
as it is today to ensure all tests run fine. Then upgrade to latest. This way packages with failing tests can just stage their update of this meta library.
Split out from os-js/osjs-client#185 (comment)
It's version locked in the CI because latest Jest seems to trigger some kind of edge case that leaves certain tests hanging. Haven't had time to look into it. Might actually just be a thing in the server codebase come to think of it.
Ideally it should be updated, and then be put into https://github.com/os-js/osjs-dev-meta instead of being in the CI stages.
Tasks
Stage 1
- Include Jest 26 as a
dependency
(make sure it's installed withnode 16
or below!)- Update README
- Upgrade
dev-meta
dependency on every package with tests, verify tests- Remove the
npm install -g jest
from CI if verified
- Remove the
Stage 2
- Upgrade to latest Jest
- Upgrade
dev-meta
dependency on every package with tests, verify tests again and fix any errors