chore: Use OS specific tmp dir to fix windows build

https://github.com/backstage/backstage/runs/1891759720?check_suite_focus=true
This commit is contained in:
Himanshu Mishra
2021-02-14 19:29:41 +01:00
parent 100db0c223
commit f9478cdd87
@@ -273,7 +273,7 @@ describe('GithubUrlReader', () => {
'https://github.com/backstage/mock',
);
const dir = await response.dir({ targetDir: '/tmp' });
const dir = await response.dir({ targetDir: tmpDir });
await expect(
fs.readFile(path.join(dir, 'mkdocs.yml'), 'utf8'),
@@ -354,7 +354,7 @@ describe('GithubUrlReader', () => {
'https://github.com/backstage/mock/tree/main/docs',
);
const dir = await response.dir({ targetDir: '/tmp' });
const dir = await response.dir({ targetDir: tmpDir });
await expect(
fs.readFile(path.join(dir, 'index.md'), 'utf8'),