We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f497142 commit 70c519dCopy full SHA for 70c519d
1 file changed
src/__tests__/index.spec.ts
@@ -89,6 +89,19 @@ describe('copyfiles', () => {
89
});
90
}));
91
92
+ test('copies files using directory pattern with /**', () =>
93
+ new Promise((done: any) => {
94
+ writeFileSync('input/a.txt', 'a');
95
+ writeFileSync('input/other/c.js', 'c');
96
+ copyfiles(['input/**'], 'output', {}, () => {
97
+ const files = readdirSync('output/input').sort();
98
+ expect(files).toEqual(['a.txt', 'other']);
99
+ const otherFiles = readdirSync('output/input/other').sort();
100
+ expect(otherFiles).toEqual(['c.js']);
101
+ done();
102
+ });
103
+ }));
104
+
105
test('modes', () =>
106
new Promise((done: any) => {
107
writeFileSync('input/a.txt', 'a', {
0 commit comments