Total Complexity | 3 |
Complexity/F | 1 |
Lines of Code | 22 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import fse from 'fs-extra'; |
||
2 | import { tmpFolder } from './constants'; |
||
3 | |||
4 | export * from './utils'; |
||
5 | // eslint-disable-next-line import/export |
||
6 | export * from './constants'; |
||
7 | |||
8 | export default class Test { |
||
9 | async setTmpFolder() { |
||
10 | await fse.ensureDir(tmpFolder); |
||
11 | } |
||
12 | |||
13 | async setPacker(Packer) { |
||
14 | this.packer = new Packer(); |
||
15 | |||
16 | return this.packer; |
||
17 | } |
||
18 | |||
19 | async cleanTmpFolder() { |
||
20 | await fse.remove(tmpFolder); |
||
21 | } |
||
22 | } |
||
23 | |||
24 |