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

Wallaby issues #39

Open
jiku opened this issue Apr 20, 2016 · 4 comments
Open

Wallaby issues #39

jiku opened this issue Apr 20, 2016 · 4 comments

Comments

@jiku
Copy link

jiku commented Apr 20, 2016

npm start seems fine (with(out) MIRROR=1).

With wallaby_client.js

ReferenceError: Can't find variable: process
at src/imports/testing/client/__meteor_runtime_config__.js:6:16
ReferenceError: Can't find variable: __meteor_runtime_config__
at src/.meteor/local/build/programs/web.browser/packages/meteor.js:36:0
at src/.meteor/local/build/programs/web.browser/packages/meteor.js:28:0
at src/.meteor/local/build/programs/web.browser/packages/meteor.js:1:0
TypeError: 'undefined' is not an object (evaluating 'Package.meteor.Meteor')
at src/.meteor/local/build/programs/web.browser/packages/meteor-base.js:4:0
at src/.meteor/local/build/programs/web.browser/packages/meteor-base.js:1:0

(many of the last one, referring to Package.meteor., Package.mongo., etc.)

and with wallaby_server.js

TypeError: Path must be a string. Received undefined
  at assertPath (path.js:8:11)
  at Object.posix.resolve (path.js:426:5)
  at module.exports (.../xolvio/automated-testing-best-practices/wallaby_server.js:276:20)

npm run karma seems fine too (23/23).

This is following the README instructions with a fresh repo. Atom 1.7.2, Wallaby 1.0.7. nvm current is v0.10.40.

@jiku
Copy link
Author

jiku commented May 9, 2016

With updated wallaby_server.js

Error: Command failed: meteor node -e "process.stdout.write(process.execPath)"
/usr/local/bin/meteor: line 29: HOME: unbound variable
  at checkExecSyncError (child_process.js:464:13)
  at Object.execSync (child_process.js:504:13)
  at Object.<anonymous> (.../app/wallaby_server.js:18:4)

@ghost
Copy link

ghost commented May 9, 2016

What happens when you run meteor node -e "process.stdout.write(process.execPath)" from your command line? Which OS are you using?

@jiku
Copy link
Author

jiku commented May 10, 2016

I get the following path, so I've just hardcoded it in and that seems to work.

var nodePath = "/Users/jiku.dev/.meteor/packages/meteor-
tool/.1.3.2_4.1bnwswu++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"

I'm on OS X 10.11.4. Now having ReferenceError: Meteor is not defined but not sure that's related. Tests for stuff that doesn't rely on Meteor pass.

@damonmaria
Copy link

For me. The latest version still has ReferenceError: Can't find variable: process. But the wallaby_server.js issue appears to have been sold.

For the ReferenceError changing the line:

   "NODE_ENV": process.env.NODE_ENV || "development"

to just:

"NODE_ENV": "development"

Solves it and gets it running. validation-spec.js then fails but that's just a matter of adding:

import _ from 'underscore';

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

2 participants