-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adds ENOENT for non windows errors
Solves for use case where Webpack is running under Bazel with iBazel. Heavily relies on symlinks set up in a certain way See bazelbuild/rules_nodejs#2431
- Loading branch information
Showing
2 changed files
with
18 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/*globals describe it beforeEach afterEach */ | ||
"use strict"; | ||
|
||
const should = require("should"); | ||
const LinkResolver = require("../lib/LinkResolver"); | ||
|
||
describe("LinkResolver", () => { | ||
it("should not throw when a path resolves with ENOENT", () => { | ||
const resolver = new LinkResolver(); | ||
const result = resolver.resolve("/path/to/nonexistent/file/or/folder"); | ||
should.exist(result); | ||
}); | ||
}); |