test/index.ts   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 0

Size

Lines of Code 21
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 19
mnd 1
bc 1
fnc 0
dl 0
loc 21
rs 10
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
1
import './specs/close'
2
import './specs/drops'
3
import './specs/echo'
4
import './specs/existing-socket'
5
import './specs/lazy'
6
import './specs/ready'
7
import './specs/reconnect'
8
import './specs/lazy-send-before-open'
9
import './specs/socket'
10
import './specs/no-native-throws'
11
import mockServer from './mock/server'
12
import {test} from './suite'
13
14
const {shutDown, isRunning} = await mockServer()
15
test.after(() => {
16
  setTimeout(async () => {
17
    if(isRunning()) await shutDown()
18
    process.exit()
19
  }, 100)
20
})
21
test.run()