all files / src/helpers/ path-resolution.js

100% Statements 6/6
100% Branches 2/2
100% Functions 0/0
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                    
import path from 'path'
 
const uniPath = path.join(__dirname, '..', '..')
 
const getEnvironmentPath = () => {
    if (process.cwd() === uniPath) {
        return path.join(uniPath, 'test', 'environment')
    } else {
        return process.cwd()
    }
}
 
export {
    getEnvironmentPath
}