test: fix failing test & update snapshots

This commit is contained in:
Igor Randjelovic
2021-03-01 21:49:33 +01:00
parent b5049add21
commit 6963e81d9f
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);