What I mean is I am already using a test runner (Jest) for unit and integration tests and if I want to keep using it for functional tests then I should be able to decouple the TestCafe test runner, reporter, etc... from the browser interaction API. So that I can do:
it('should demonstrate usage of TestCafe within any test runner', async () => {
const testCafeConfig = { ... };
const browser = TestCafe.initiatlize(testCafeConfig);
await browser
.typeText('#developer-name', 'John Smith')
.click('#submit-button');
...
});
Is this possible today or should I work on adding this functionality myself? I haven't spent too much time looking at the source code yet but I can do that and see where this could be possible if it isn't already.