Test devicesetup library without a real device?

Got the app to work using device setup library, I would however like to test the flow without a real device. I know softap-emulator-js exists but how do I configure the device setup library to connect to the localhost port? Anyone has tried it before?