test: fix failing test & update snapshots

This commit is contained in:
Igor Randjelovic
2021-03-01 21:49:33 +01:00
committed by Nathan Walker
parent 1e6a904b30
commit 6e918cdf6b
6 changed files with 159 additions and 61 deletions

View File

@ -20,7 +20,7 @@ jest.mock('path', () => {
...path,
resolve(...args) {
if (args[0] === '__jest__') {
return path.join(...args);
return path.join(...args.filter(Boolean));
}
const resolved = path.resolve(...args);