We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 187ab7d commit 22a3251Copy full SHA for 22a3251
tests/legacy-cli/e2e/utils/assets.ts
@@ -1,4 +1,5 @@
1
import { join } from 'path';
2
+import { chmod } from 'fs/promises';
3
import glob from 'glob';
4
import { getGlobalVariable } from './env';
5
import { relative, resolve } from 'path';
@@ -33,7 +34,9 @@ export function copyAssets(assetName: string, to?: string) {
33
34
? resolve(getGlobalVariable('projects-root'), 'test-project', to, filePath)
35
: join(tempRoot, filePath);
36
- return promise.then(() => copyFile(join(root, filePath), toPath));
37
+ return promise
38
+ .then(() => copyFile(join(root, filePath), toPath))
39
+ .then(() => chmod(toPath, 0o777));
40
}, Promise.resolve());
41
})
42
.then(() => tempRoot);
0 commit comments