How to use mobile emulation to test on view ports with JS-TestCafe?

How can I make use of mobile emulation to test on view ports with JS-TestCafe?