Ability to pass a window and npm test script