mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
tests
This commit is contained in:
@@ -5,7 +5,7 @@ const Glob = glob.Glob;
|
||||
const pattern = "test/a/**/[cg]/../[cg]";
|
||||
console.log(pattern);
|
||||
|
||||
const mg = new Glob(pattern, {mark: true, sync: true}, (er, matches) => {
|
||||
const mg = new Glob(pattern, {mark: true, sync: true, symlinks: {"test/a/foo": true}}, (er, matches) => {
|
||||
if (er) {
|
||||
console.error(er);
|
||||
return;
|
||||
@@ -28,3 +28,6 @@ const Glob = glob.Glob;
|
||||
});
|
||||
console.log("after");
|
||||
})();
|
||||
|
||||
glob.sync('/foo/*', {realpath: true, realpathCache: {'/foo/bar': '/bar'}, ignore: '/foo/baz'});
|
||||
glob.sync('/*', {nodir: true, cache: {'/': ['bar', 'baz']}, statCache: {'/foo/bar': false, '/foo/baz': {isDirectory() { return true; }}}});
|
||||
|
||||
Vendored
+1
-1
@@ -47,7 +47,7 @@ declare namespace G {
|
||||
nocase?: boolean;
|
||||
matchBase?: any;
|
||||
nodir?: boolean;
|
||||
ignore?: string | string[]
|
||||
ignore?: string | string[];
|
||||
follow?: boolean;
|
||||
realpath?: boolean;
|
||||
nonegate?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user