Skip to content

Commit f5e661b

Browse files
authoredFeb 27, 2021
test: issue 496 (#586)
1 parent ed7069b commit f5e661b

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed
 

‎package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"dependencies": {
4444
"fast-glob": "^3.2.4",
4545
"glob-parent": "^5.1.1",
46-
"globby": "^11.0.1",
46+
"globby": "^11.0.2",
4747
"loader-utils": "^2.0.0",
4848
"normalize-path": "^3.0.0",
4949
"p-limit": "^3.0.2",

‎test/globOptions-option.test.js

+22
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,28 @@ describe("globOptions option", () => {
116116
.catch(done);
117117
});
118118

119+
it("should work with globOptions.objectMode && globOptions.gitignore", (done) => {
120+
runEmit({
121+
expectedAssetKeys: [
122+
".dottedfile",
123+
"directoryfile.txt",
124+
"nested/deep-nested/deepnested.txt",
125+
],
126+
patterns: [
127+
{
128+
from: "directory",
129+
globOptions: {
130+
objectMode: true,
131+
gitignore: true,
132+
ignore: ["**/nestedfile.*"],
133+
},
134+
},
135+
],
136+
})
137+
.then(done)
138+
.catch(done);
139+
});
140+
119141
it('should files in nested directory when "from" is a directory', (done) => {
120142
runEmit({
121143
expectedAssetKeys: [".dottedfile", "directoryfile.txt"],

0 commit comments

Comments
 (0)
Please sign in to comment.