Open
Description
What is the "right" way to add client code tests?
I tried the obvious:
require(TEST_HELPER) // <--- This must be at the top of every test file
var request = require('supertest-as-promised')
var app = require(__client + '/app.js')
...
But it fails since the window is not defined. Simply setting window = global doesn't work either since then "document" can't be found.
I guess the next step would be to use m.deps() and set mock objects for the window and document, but I'm wondering if I'm missing anything, or if it would make sense to integrate this stuff into the boilerplate.
Metadata
Metadata
Assignees
Labels
No labels