Hapi js export server variable

588 Views Asked by At

I want to add tests to my project. The server is written in Hapi and I was wondering where to put my tests folder and how to export the server variable to the tests file. I know I can export it with module.exports = server but I think it's not a good idea to export it like that. Any suggestions?

1

There are 1 best solutions below

1
Giorgio Cerruti On BEST ANSWER

Maybe you can look at here I found a lot of examples to structure my projects.