mockserver
mockserver copied to clipboard
Using absolute path to the mocks directory fails for custom imports
Running test mockserver/mockserver()/should be able to handle imports with an absolute path to the mocks directory:
var mocksDirectory = path.join(__dirname, './mocks');
fails with
Error: ENOENT: no such file or directory, open 'Users/christianjacobsen/dev/mockserver/test/mocks/import/data.json'