How to inject cookies in a test with JS - TestCafe?

Can I inject cookies in a test with TestCafe?

Hi Emma,

To inject cookies, you can add the below code:

driver.Manage().Cookies.AddCookie(new Cookie("key", "value"));