hi folks, I'm working on some unit tests, but I'm...
# typescript
m
hi folks, I'm working on some unit tests, but I'm struggling a lot with
azure.authorization.RoleAssignment
resource, every time I added any to the test suit I receive the following error:
Copy code
ReferenceError: You are trying to `import` a file after the Jest environment has been torn down
...
TypeError: azure.authorization.RoleAssignment is not a constructor
I've seen this issue in GitHub, that unfortunately is still open and seems that might be closely related, but the workaround mentioned there is not working for me - I also tried to add that resource to the pulumi mocks, but I'm not even sure if it's picked up, because I still see the reference to the "new" action does anybody know how I can solve/workaround this issue?