Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/Tests/L0FailsIfThereIsMkdirError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir/someOtherDir'):
itemStats.isDirectory = () => true;
Expand Down
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/Tests/L0IgnoresMakeDirError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir/someOtherDir'):
itemStats.isDirectory = () => true;
Expand Down
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/Tests/L0cleansIfSpecified.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/destDir'):
case path.normalize('/srcDir'):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir'):
case path.normalize('/srcDir/someOtherDir'):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir'):
case path.normalize('/srcDir/someOtherDir'):
Expand Down
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/Tests/L0copyAllFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir/someOtherDir'):
case path.normalize('/srcDir/someOtherDir2'):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir [bracket]/someOtherDir'):
case path.normalize('/srcDir [bracket]/someOtherDir2'):
Expand Down
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/Tests/L0copySubtractExclude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir/someOtherDir'):
case path.normalize('/srcDir/someOtherDir2'):
Expand Down
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/Tests/L0failsIfTargetFileIsDir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir/someOtherDir'):
case path.normalize('/destDir/someOtherDir/file1.file'):
Expand Down
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/Tests/L0overwritesIfSpecified.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir/someOtherDir'):
case path.normalize('/destDir/someOtherDir'):
Expand Down
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/Tests/L0overwritesReadonly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir/someOtherDir'):
case path.normalize('/destDir/someOtherDir'):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir/someOtherDir'):
case path.normalize('/srcDir/someOtherDir2'):
Expand Down
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/Tests/L0rootsPatterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir/someOtherDir/file1.file'):
case path.normalize('/srcDir/someOtherDir/file2.file'):
Expand Down
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/Tests/L0skipsIfExists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Object.assign(fsClone, {
}
},
statSync(itemPath: string): fs.Stats {
const itemStats: fs.Stats = new fs.Stats();
const itemStats: fs.Stats = Object.create(fs.Stats.prototype) as fs.Stats;
switch (itemPath) {
case path.normalize('/srcDir/someOtherDir'):
case path.normalize('/destDir/someOtherDir'):
Expand Down
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 256,
"Minor": 267,
"Patch": 0
},
"releaseNotes": "Match pattern consistency.",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/CopyFilesV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 256,
"Minor": 267,
"Patch": 0
},
"releaseNotes": "ms-resource:loc.releaseNotes",
Expand Down
Loading