Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cdk-cli-wrapper): fix tests for monorepo (aws#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*
- Loading branch information