Skip to content

Commit

Permalink
test: issue 496 (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-Bernardito authored Feb 27, 2021
1 parent ed7069b commit f5e661b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"dependencies": {
"fast-glob": "^3.2.4",
"glob-parent": "^5.1.1",
"globby": "^11.0.1",
"globby": "^11.0.2",
"loader-utils": "^2.0.0",
"normalize-path": "^3.0.0",
"p-limit": "^3.0.2",
Expand Down
22 changes: 22 additions & 0 deletions test/globOptions-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,28 @@ describe("globOptions option", () => {
.catch(done);
});

it("should work with globOptions.objectMode && globOptions.gitignore", (done) => {
runEmit({
expectedAssetKeys: [
".dottedfile",
"directoryfile.txt",
"nested/deep-nested/deepnested.txt",
],
patterns: [
{
from: "directory",
globOptions: {
objectMode: true,
gitignore: true,
ignore: ["**/nestedfile.*"],
},
},
],
})
.then(done)
.catch(done);
});

it('should files in nested directory when "from" is a directory', (done) => {
runEmit({
expectedAssetKeys: [".dottedfile", "directoryfile.txt"],
Expand Down

0 comments on commit f5e661b

Please sign in to comment.