Skip to content

Commit 5b5806d

Browse files
Benedikt Rötschaxe312ger
authored andcommitted
test(unit): download asset tests now uses subfolder in tmpdir
1 parent d6368f8 commit 5b5806d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit/tasks/download-assets.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { tmpdir } from 'os'
2+
import { resolve } from 'path'
23

34
import nock from 'nock'
45
import fs from 'fs-extra'
56

67
import downloadAssets from '../../../lib/tasks/download-assets'
78

8-
const tmpDirectory = tmpdir()
9+
const tmpDirectory = resolve(tmpdir(), 'contentful-import-test')
910

1011
nock('https://images.contentful.com')
1112
.get('/kq9lln4hyr8s/2MTd2wBirYikEYkIIc0YSw/7aa4c06f3054996e45bb3f13964cb254/rocka-nutrition.png')

0 commit comments

Comments
 (0)