Hey @Johan,
I know this is totally late, but just in case you or someone else runs into this again I wanted to post an answer.
I did something very similar to this recently for using Protractor to test a partially Angular application. What I did that worked was add a variable name to the 'require()' statement at the very top of my test file. So my test file looks like this:
var moment = require('moment');
describe('Screen A - Mobile', function() {
......
it('Example Jasmine IT block test', function() {
var m = moment();
console.log('moment date = ' + moment().format('dddd')); // print day of week
});
});
I think the only part you were missing was assigning a handle ("moment" in my example) to the require of the moment library.
Hope that helps!