This file contains hidden or 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
// Added ability to pass in options for testing-library/react | |
// | |
// Lifted from https://gist.github.com/tarunsahnan/93418e81882f2e343e09894bc6de6f35 on 2025-04-25 | |
// Thread: https://github.com/testing-library/react-testing-library/issues/1209#issuecomment-2692563090 | |
// | |
// ORIGINAL BELOW | |
// | |
// While using [this solution](https://github.com/testing-library/react-testing-library/issues/1209#issuecomment-2400054404), | |
// I encountered a timeout issue caused by API calls in my components. Each component was waiting for its | |
// API call to complete before rendering, which led to delays and affected the flow to subsequent components. |
This file contains hidden or 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
Mapper.CreateMap<TestClass, TestClassViewModel>() | |
.ForMember(dest => dest.Bar, opt => opt.MapFrom(src => src.Foo)); | |
var map = new Mapper<TestClass, TestClassViewModel>(Mapper.Engine); |