mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
refactor: normalize error logging (#7370)
This commit is contained in:
parent
87c7639a52
commit
7c9892888d
10 changed files with 27 additions and 30 deletions
2
jest/snapshotPathNormalizer.ts
vendored
2
jest/snapshotPathNormalizer.ts
vendored
|
@ -142,7 +142,7 @@ function getRealPath(pathname: string) {
|
|||
// eslint-disable-next-line no-restricted-properties
|
||||
const realPath = fs.realpathSync(pathname);
|
||||
return realPath;
|
||||
} catch (error) {
|
||||
} catch (err) {
|
||||
return pathname;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue