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

Add test for Node environment #60

Open
mattzeunert opened this issue May 8, 2016 · 0 comments
Open

Add test for Node environment #60

mattzeunert opened this issue May 8, 2016 · 0 comments
Assignees

Comments

@mattzeunert
Copy link
Owner

mattzeunert commented May 8, 2016

We need to check the library loads without issues in a Node environment, and that it's possible to create a breakpoint.

(Not all breakpoints will work because some rely on the DOM. They're still in the NPM version, but I don't think it's a problem for now.)

This is the code I was using before for manual testing. We'd need a second Karma environment to run the Node tests in.

var bps = require("./extension/build/javascript-breakpoint-collection.js")
var obj = {greeting: "hi"}
bps.debugPropertySet(obj, "greeting", "trace")
obj.greeting = "hello"

(The main thing that could go wrong without tests is that we accidentally try to access window or document in shared code, since those global variables don't exist in a Node env.)

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