Skip to content

Commit 22a3251

Browse files
jbedardclydin
authored andcommitted
test: ensure test assets are writable when copied for use in e2e tests
1 parent 187ab7d commit 22a3251

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/legacy-cli/e2e/utils/assets.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { join } from 'path';
2+
import { chmod } from 'fs/promises';
23
import glob from 'glob';
34
import { getGlobalVariable } from './env';
45
import { relative, resolve } from 'path';
@@ -33,7 +34,9 @@ export function copyAssets(assetName: string, to?: string) {
3334
? resolve(getGlobalVariable('projects-root'), 'test-project', to, filePath)
3435
: join(tempRoot, filePath);
3536

36-
return promise.then(() => copyFile(join(root, filePath), toPath));
37+
return promise
38+
.then(() => copyFile(join(root, filePath), toPath))
39+
.then(() => chmod(toPath, 0o777));
3740
}, Promise.resolve());
3841
})
3942
.then(() => tempRoot);

0 commit comments

Comments
 (0)