test(scaffolder/docker): added some tests to check the home cariable

This commit is contained in:
blam
2020-08-10 21:27:35 +02:00
parent ae56770cf2
commit 56db3293d8
@@ -126,7 +126,7 @@ describe('helpers', () => {
);
});
it('should pass through the user and group id from the host machine', async () => {
it('should pass through the user and group id from the host machine and set the home dir', async () => {
await runDockerContainer({
imageName,
args,
@@ -141,6 +141,7 @@ describe('helpers', () => {
expect.any(Stream),
expect.objectContaining({
User: `${process.getuid()}:${process.getgid()}`,
Env: ['HOME=/tmp'],
}),
);
});