-
Notifications
You must be signed in to change notification settings - Fork 678
Closed
Labels
AREA: clientFREQUENCY: level 1SYSTEM: driverTYPE: bugThe described behavior is considered as wrong (bug).The described behavior is considered as wrong (bug).
Milestone
Description
What is your Test Scenario?
Pass a class as a dependency to a client function in a TypeScript test. See the "Test Code" section.
What is the Current behavior?
TestCafe hangs.
What is the Expected behavior?
TestCafe executes the client function.
What is your web application and your TestCafe test code?
Your website URL (or attach your complete example):
Your complete test code (or attach your test files):
import { ClientFunction } from 'testcafe';
class Foo {
bar: number;
constructor () {
this.bar = 42;
}
}
const exec = ClientFunction(() => new Foo(), { dependencies: { Foo }});
fixture `example`.page `example.com`;
test(`example`, async t => {
console.log(await exec());
});Your complete configuration file (if any):
Your complete test report:
Screenshots:
Steps to Reproduce:
- Go to my website ...
- Execute this command...
- See the error...
Your Environment details:
- testcafe version: 1.2.1
- node.js version: any
- command-line arguments: testcafe chrome test.ts
- browser name and version: any
- platform and version: any
- other:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AREA: clientFREQUENCY: level 1SYSTEM: driverTYPE: bugThe described behavior is considered as wrong (bug).The described behavior is considered as wrong (bug).