Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fixedmichal
Copy link

clientScripts method added

Copy link
Collaborator

@miherlosev miherlosev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution to TestCafe. I left a few minor remarks.

assertionTimeout?: number;
browsers?: string[]; // default in schema.json
clientScripts?: string | string[]; //doesn't do anything yet
clientScripts?: string | string[];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please copy the typing from here.

.src(opts.src instanceof Array ? opts.src : [ opts.src ])
.tsConfigPath(opts.tsConfigPath)
.browsers(opts.browsers)
.clientScripts(opts.clientScripts instanceof Array ? opts.clientScripts : [ opts.clientScripts ])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can simplify code as .clientScripts(opts.clientScripts)

@AndreyBelym
Copy link
Contributor

I accidentally pushed the upstream master into the fork, so GitHub closed the PR automatically due to no differences between the PR and master. And since I cannot reopen it, let's continue working on this feature in #88.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants