You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(cdk-cli-wrapper): fix tests for monorepo (#32511)
In a slightly different testing setup, the `jest.spyOn` calls fail with the error:
```
Cannot redefine property: spawnSync
```
This has to do with how the object representing the `fs` module is defined. We can override the module and return a plain object with all the functions, so that the elements can be mocked later on.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
0 commit comments