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

Error executing tests in a new typescript project #569

Closed
ghidello opened this issue Mar 28, 2017 · 0 comments · Fixed by #571
Closed

Error executing tests in a new typescript project #569

ghidello opened this issue Mar 28, 2017 · 0 comments · Fixed by #571
Labels

Comments

@ghidello
Copy link
Contributor

I'm submitting a bug report

  • Library Version:
    0.27.0

Please tell us about your environment:

  • Operating System:
    Windows 10

  • Node Version:
    7.7.2

  • NPM Version:
    4.1.2

  • Browser:
    all

  • Language:
    TypeScript 2.2

Current behavior:
Running the command au test I receive the following error

TypeError: Cannot read property 'join' of undefined
at karma (E:\Work\Aurelia\ts\aurelia_project\tasks\test.ts:17:38)

Expected/desired behavior:

  • Steps to reproduce
    Create a new project selecting typescript as a language and accepting all the other default choices. Execute the au test command.

  • What is the expected behavior?
    The CLI should execute the tests without errors.

  • Proposed solution
    I guess that the 17th line in aurelia_project\tasks\test.ts should be changed from import path from 'path'; to import * as path from 'path'; or import {join} from 'path'; (in the latter case line 18th should be changed accordingly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants