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

problem using karma init my.conf.js #663

Closed
jmaclabs opened this issue Jul 27, 2013 · 8 comments
Closed

problem using karma init my.conf.js #663

jmaclabs opened this issue Jul 27, 2013 · 8 comments

Comments

@jmaclabs
Copy link

jmac: /usr/local/lib/node_modules/karma
➺ karma init my.conf.js

Which testing framework do you want to use ?
Press tab to list possible options. Enter to move to the next question.

jasmine

Do you want to use Require.js ?
This will add Require.js adapter into files.
Press tab to list possible options. Enter to move to the next question.

no

Do you want to capture a browser automatically ?
Press tab to list possible options. Enter empty string to move to the next question.

Chrome

Which files do you want to test ?
You can use glob patterns, eg. "js/_.js" or "test/__/_Spec.js".
Enter empty string to move to the next question.

/usr/local/lib/node_modules/karma/lib/init.js:47
if (!glob.sync(value).length) {
^
TypeError: Cannot read property 'length' of undefined
at Object.validatePattern as validate
at onLine (/usr/local/lib/node_modules/karma/lib/init.js:158:25)
at Interface.EventEmitter.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
at Interface._ttyWrite (readline.js:760:14)
at ReadStream.onkeypress (readline.js:99:10)
at ReadStream.EventEmitter.emit (events.js:117:20)
at emitKey (readline.js:1095:12)
at ReadStream.onData (readline.js:840:14)

@vojtajina
Copy link
Contributor

What version of karma are you using ? karma --version

@vojtajina
Copy link
Contributor

I have really no idea how can glob.sync(...) return undefined.

@jmaclabs
Copy link
Author

I installed it moments before so whatever version was abailable on the same day I filed.

I'll confirm the version when I'm on that computer again.

  • jmac

On Jul 29, 2013, at 1:56 AM, Vojta Jina [email protected] wrote:

What version of karma are you using ? karma --version


Reply to this email directly or view it on GitHub.

@yoshuawuyts
Copy link

The problem I got was an outdated init file (with the old syntax) any pointers on that?

@jmaclabs
Copy link
Author

➺ karma --version
Karma version: 0.8.7

On Mon, Jul 29, 2013 at 1:56 AM, Vojta Jina [email protected]:

What version of karma are you using ? karma --version


Reply to this email directly or view it on GitHubhttps://github.com//issues/663#issuecomment-21706931
.

@vojtajina
Copy link
Contributor

@yoshuawuyts karma init generates config syntax for that particular version. So assuming you are on stable (0.8.7), it will generate the config syntax for karma 0.8.7.

@jmaclabs this really makes no sense to me. Can what kind of pattern did you enter ? Just empty string to move on next question ? What system are you on ?

Sorry for all the questions, but it's pretty weird that glob.sync() returned undefined.

@jmaclabs
Copy link
Author

Pattern: single tap of my space bar

Mac OSX 10.8

  • jmac

On Jul 29, 2013, at 10:33 PM, Vojta Jina [email protected] wrote:

@yoshuawuyts karma init generates config syntax for that particular version. So assuming you are on stable (0.8.7), it will generate the config syntax for karma 0.8.7.

@jmaclabs this really makes no sense to me. Can what kind of pattern did you enter ? Just empty string to move on next question ? What system are you on ?

Sorry for all the questions, but it's pretty weird that glob.sync() returned undefined.


Reply to this email directly or view it on GitHub.

@vojtajina
Copy link
Contributor

Woow, space does it ! I can reproduce that too. Will fix it.

On Tue, Jul 30, 2013 at 1:33 AM, John McLaughlin
[email protected]:

Pattern: single tap of my space bar

Mac OSX 10.8

  • jmac

On Jul 29, 2013, at 10:33 PM, Vojta Jina [email protected]
wrote:

@yoshuawuyts karma init generates config syntax for that particular
version. So assuming you are on stable (0.8.7), it will generate the config
syntax for karma 0.8.7.

@jmaclabs this really makes no sense to me. Can what kind of pattern did
you enter ? Just empty string to move on next question ? What system are
you on ?

Sorry for all the questions, but it's pretty weird that glob.sync()
returned undefined.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/663#issuecomment-21776684
.

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

No branches or pull requests

3 participants