Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to run a TypeScript test fails with error on MacOS #1696

Closed
thongdong7 opened this issue Aug 14, 2017 · 3 comments · Fixed by #1698
Closed

Attempt to run a TypeScript test fails with error on MacOS #1696

thongdong7 opened this issue Aug 14, 2017 · 3 comments · Fixed by #1698
Labels
!IMPORTANT! STATE: Auto-locked An issue has been automatically locked by the Lock bot. TYPE: bug The described behavior is considered as wrong (bug).
Milestone

Comments

@thongdong7
Copy link

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

$ testcafe chrome tests/t1.ts
ERROR Cannot prepare tests due to an error.

TypeError: Cannot read property 'length' of undefined

Type "testcafe -h" for help.

What is the expected behavior?

The testcase could be execute without error.

How would you reproduce the current behavior (if this is a bug)?

$ yarn global add testcafe
$ testcafe --version
0.17.0
$ testcafe chrome tests/t1.ts
  • When downgrade to 0.16.x, it works fine.

Provide the test code and the tested page URL (if applicable)

Tested page URL: http://devexpress.github.io/testcafe/example

Test code

import { Selector } from 'testcafe';

fixture `Getting Started`.page `http://devexpress.github.io/testcafe/example`;

test('My first test', async t => {
  // Test code
});

Specify your

  • operating system: MacOS
  • testcafe version: 0.17.0
  • node.js version: 8.3.0_1
@AlexanderMoskovkin AlexanderMoskovkin self-assigned this Aug 14, 2017
@AlexanderMoskovkin AlexanderMoskovkin added !IMPORTANT! TYPE: bug The described behavior is considered as wrong (bug). labels Aug 14, 2017
@AlexanderMoskovkin AlexanderMoskovkin added this to the Sprint #9 milestone Aug 14, 2017
@AlexanderMoskovkin
Copy link
Contributor

I @thongdong7,

Thanks for the report. I've reproduced the issue on MacOS. We'll fix it in the next minor version.

@AlexanderMoskovkin
Copy link
Contributor

AlexanderMoskovkin commented Aug 15, 2017

fixed in #1698

@AlexanderMoskovkin AlexanderMoskovkin changed the title Cannot read property 'length' of undefined Attempt to run a TypeScript test fails with error on MacOS Aug 16, 2017
@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
!IMPORTANT! STATE: Auto-locked An issue has been automatically locked by the Lock bot. TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants