-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/runtime global function mocking (#259)
* Added function to bast test suite to store global mocked functions * Moved some logic to the utils * Added logic to inject code that adds global mock checks at the start of function bodys * Fixed a reversed check * Removed new api in favor of expanding stubcall and updated injection code * Updated some of the global function detection logic * Unit tests, fixes, sample test project update * removed console logs * Transpile the file if we had to touch modify it * Fixed global mocks and stubs not clearing * updated some of the checks around transforming stubcall functions * Made some code reusable and fixed some imports * Added back the disablemocking logic and removed unused code * Fixed bad ast related to noEarlyExit * Updated bsc in tests app * added tests for global stubcall on device * Fixed some device tests * Fixed more on device tests * More test fixes as the result of moving to ast editor * Fixed some indenting * Fixed node test xml files being added after modifying assertions leading to crashes * Updated the modify stub detection logic for globals * more tests for global stub call modifications * Fixed some race conditons and more global function detection refinments * Fixed some issues picking the wrong scope and make sure stubcall worked with async tests * Moved global stub clearing to clearStubs()
- Loading branch information
Showing
14 changed files
with
1,864 additions
and
678 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.