altinn-studio icon indicating copy to clipboard operation
altinn-studio copied to clipboard

Generating of new yarn.lock files makes our unit-tests to fail

Open framitdavid opened this issue 1 year ago • 2 comments

If we remove the yarn.lock file and then run yarn install again to make a new one, our unit tests will break with the error message "Act is not configured for this environment."

Also, according to RTL's suggestion, it's best not to use the act function to wrap user events or fire event that are triggered. If we remove the act wrapping, our unit tests will fail, and we'll get a warning that says the action isn't properly wrapped within the act. We need to look into why this is happening and fix our tests.

framitdavid avatar Aug 24 '23 18:08 framitdavid

@framitdavid is this issue still relevant?

nkylstad avatar Apr 05 '24 11:04 nkylstad

Let me cross-check this tomorrow. I'll close it tomorrow if it's not relevant anymore. 👍

framitdavid avatar Apr 07 '24 20:04 framitdavid