I want to add a helper file for a global afterEach in my protractor conf file. But how do i load the file? I have tried like, but it does not work. 
conf.ts
 mochaOpts: {
            file: './hooks.js',
            }
 }
hooks.ts
afterEach(async () => {
  console.log('---global after each');
});