Skip to content

Instantly share code, notes, and snippets.

diff --git a/node_modules/fs-extra/lib/copy/copy.js b/node_modules/fs-extra/lib/copy/copy.js
index 328f102..31cd27b 100644
--- a/node_modules/fs-extra/lib/copy/copy.js
+++ b/node_modules/fs-extra/lib/copy/copy.js
@@ -150,7 +150,7 @@ function onDir (srcStat, destStat, src, dest, opts, cb) {
}
function mkDirAndCopy (srcMode, src, dest, opts, cb) {
- fs.mkdir(dest, err => {
+ fs.mkdir(dest, { recursive: true }, err => {
@kroeder
kroeder / update-props-test.util.ts
Created November 12, 2019 08:57
Test util for setting component properties and call ngOnChanges with these changes
export class TypedSimpleChange<T> {
constructor(public previousValue: T | undefined, public currentValue: T, public firstChange: boolean) {};
}
declare type TypedSimpleChanges<T> = {
[Key in keyof T]?: TypedSimpleChange<T[Key]>;
};
function updatePropsAndCallNgOnChanges<T extends object>(componentFixture: OnChanges, changes: TypedSimpleChanges<Partial<T>>) {
const simpleChanges: SimpleChanges = {};