phldavies
01/04/2022, 11:12 AMTestApplicationEngine
when using the new testApplication
API (and is there any link to the 2.0 docs anywhere? I can’t seem to find anything to help navigating the new APIs)Dominaezzz
01/04/2022, 2:02 PMRustam Siniukov
01/04/2022, 2:38 PMphldavies
01/04/2022, 4:46 PMhandleRequest
method within our test cases and asserting over the TestApplicationCall
(using a number of custom assertion helpers) - I’m currently updating this to use the new testApplication
API due to the deprecation warning.Rustam Siniukov
01/04/2022, 5:04 PMphldavies
01/04/2022, 5:10 PMRustam Siniukov
01/04/2022, 6:08 PMphldavies
01/06/2022, 12:54 PMMockEngine
when setting up the route however the external-services hook stuff looks interesting for this use-case, however I would guess the client
isn’t available to inject into the routes until after the TestApplication has been built?Rustam Siniukov
01/06/2022, 2:50 PMphldavies
01/06/2022, 5:13 PMapplication {}
block isn’t actually invoked until it’s all configured) - I was worried that the call for client
would create the engine and cause further config to fail (or not be picked up) however due to the use of DelegatingTestClientEngine
it seems to work fine :)