2 Different from 'utils' because we don't not import other PeerTube modules.
3 Useful to avoid circular dependencies.
6 import { join } from 'path'
8 function isTestInstance () {
9 return process.env.NODE_ENV === 'test'
13 // We are in /dist/helpers/utils.js
14 return join(__dirname, '..', '..', '..')
17 // ---------------------------------------------------------------------------