tests/Test.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 16
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 9
mnd 0
bc 0
fnc 2
dl 0
loc 16
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A Test.setTmpFolder 0 3 1
A Test.cleanTmpFolder 0 3 1
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 cleanTmpFolder() {
14
        await fse.remove(tmpFolder);
15
    }
16
}
17
18