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 1f511b8 commit d332212Copy full SHA for d332212
test/CopyPlugin.test.js
@@ -871,6 +871,20 @@ describe('apply function', () => {
871
.catch(done);
872
});
873
874
+ it('warns when pattern is empty', (done) => {
875
+ runEmit({
876
+ expectedAssetKeys: [],
877
+ expectedErrors: [new Error(`path "from" cannot be empty string`)],
878
+ patterns: [
879
+ {
880
+ from: '',
881
+ },
882
+ ],
883
+ })
884
+ .then(done)
885
+ .catch(done);
886
+ });
887
+
888
it('can use an absolute path to move a file to the root directory', (done) => {
889
const absolutePath = path.resolve(HELPER_DIR, 'file.txt');
890
0 commit comments