-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: make paths in config unit tests more robust by using __dirname
When executing tests from the workspace root directly (through `./node_modules/.bin/mocha 'packages/spec/*.js'`) the config tests will not be able to resolve to the correct mock directories because at the moment they were using `path.resolve` which resolves from the current working directory. By using `__dirname` we can circumvent this issue and make the tests more robust.
- Loading branch information
1 parent
0022a1c
commit 31b38bb
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters