Skip to content

Commit

Permalink
feat: resolve absolute path of mock directory
Browse files Browse the repository at this point in the history
  • Loading branch information
anoack93 committed Sep 22, 2022
1 parent 4dfe9a9 commit 859a925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serve-mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function createServeMocksExpressApp(mockDirectory) {
currentWorkingDirectory = currentWorkingDirectory.replace(/\\/g, '/')
}

const mockFileRoot = currentWorkingDirectory + mockDirectory
const mockFileRoot = path.resolve(currentWorkingDirectory + mockDirectory)
console.log('\nMOCK_DIR=' + mockFileRoot + '\n')

console.log(chalk.bold('Endpoints:'))
Expand Down

0 comments on commit 859a925

Please sign in to comment.