I can register a callbacks onPageCreated / newPage.onCallback and then use window.callPhantom() to transfer some data from Phantom's javascript page to karma.config.js but a callback functions onCallback (the same for onPageCreated) are called in context of PhantomJS and can not access e.g. to file system.
The task is to create another callback e.g. onBrowserLogNodeContext which can be called on stdout 'data' events by NodeJS parent process.
I can register a callbacks onPageCreated / newPage.onCallback and then use window.callPhantom() to transfer some data from Phantom's javascript page to karma.config.js but a callback functions onCallback (the same for onPageCreated) are called in context of PhantomJS and can not access e.g. to file system.
The task is to create another callback e.g. onBrowserLogNodeContext which can be called on stdout 'data' events by NodeJS parent process.