Provided this config:
config["web-module"] = {
autoRun:false,
environment: "browser",
rootPath: "../web/resources/public/",
tests: [
"test/module//*-test.js"
],
resources: ["js//*.js"]
// sources: ["js/require-jquery.js"]
}
(buster.js is located in test/buster.js and the other paths can be figured out from the config above).
When I try to capture the browser I get this exception:
buster-server running on http://localhost:1111
module.js:334
throw new Error("Cannot find module '" + request + "'");
^
Error: Cannot find module './../../vendor/json/json2'
at Function._resolveFilename (module.js:334:11)
at Function.resolve (module.js:372:19)
at Object.createResourceSet (/Users/jocke/opt/buster/buster-capture-server/lib/capture/captured-client.js:106:17)
at Object.create (/Users/jocke/opt/buster/buster-capture-server/lib/capture/captured-client.js:23:27)
at Object.captureClient (/Users/jocke/opt/buster/buster-capture-server/lib/capture/capture-middleware.js:87:33)
at Object.respond (/Users/jocke/opt/buster/buster-capture-server/lib/capture/capture-middleware.js:22:27)
at Object.respond (/Users/jocke/opt/buster/buster-capture-server/lib/buster-capture-server.js:20:26)
at Server. (/Users/jocke/opt/buster/buster-capture-server/lib/buster-capture-server.js:90:24)
at Server.emit (events.js:70:17)
at HTTPParser.onIncoming (http.js:1478:12)
johlrogges ~/dev/agical/zeroadmin on feature/persist-user-settings(280986b) exited 1
56 zeroadmin:feature/persist-user-settings!? % buster server 14:06:18
buster-server running on http://localhost:1111
module.js:334
throw new Error("Cannot find module '" + request + "'");
^
Error: Cannot find module './../../vendor/json/json2'
at Function._resolveFilename (module.js:334:11)
at Function.resolve (module.js:372:19)
at Object.createResourceSet (/Users/jocke/opt/buster/buster-capture-server/lib/capture/captured-client.js:106:17)
at Object.create (/Users/jocke/opt/buster/buster-capture-server/lib/capture/captured-client.js:23:27)
at Object.captureClient (/Users/jocke/opt/buster/buster-capture-server/lib/capture/capture-middleware.js:87:33)
at Object.respond (/Users/jocke/opt/buster/buster-capture-server/lib/capture/capture-middleware.js:22:27)
at Object.respond (/Users/jocke/opt/buster/buster-capture-server/lib/buster-capture-server.js:20:26)
at Server. (/Users/jocke/opt/buster/buster-capture-server/lib/buster-capture-server.js:90:24)
at Server.emit (events.js:70:17)
at HTTPParser.onIncoming (http.js:1478:12)
I also tried: node install buster in the directory from which I run buster server. Don't know if this would change anything but the results are the same.
When I check ls /Users/jocke/opt/buster/buster-capture-server/vendor/json the directory is empty.
I'll dig some more to see if I can figure out why that is...