1 | const rimraf = require('rimraf')
|
2 | const path = require('path')
|
3 | const ClinicDoctor = require('../index.js')
|
4 |
|
5 | const doctor = new ClinicDoctor()
|
6 | doctor.collect([
|
7 | process.execPath,
|
8 | path.join(__dirname, 'cmd-no-cluster.cluster.js')
|
9 | ], (err, result) => {
|
10 | rimraf.sync(result)
|
11 | if (err) throw err
|
12 | })
|