File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 127
127
"prettier" : " 2.0.5" ,
128
128
"prettier-eslint" : " 11.0.0" ,
129
129
"qunit-dom" : " 1.2.0" ,
130
+ "rimraf" : " ^3.0.2" ,
130
131
"testdouble" : " 3.16.0" ,
131
132
"ts-node" : " 8.10.2" ,
132
133
"typescript" : " 3.7.5"
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import execa from 'execa';
4
4
import { EventEmitter } from 'events' ;
5
5
import got from 'got' ;
6
6
import debugLib from 'debug' ;
7
+ import rimraf from 'rimraf' ;
7
8
8
9
const debug = debugLib ( 'skeleton-app' ) ;
9
10
@@ -15,7 +16,7 @@ const getEmberPort = (() => {
15
16
export default class SkeletonApp {
16
17
port = getEmberPort ( ) ;
17
18
watched : WatchedBuild | null = null ;
18
- cleanupTempDir = ( ) => fs . removeSync ( this . root ) ;
19
+ cleanupTempDir = ( ) => rimraf ( this . root , ( error ) => console . error ( error ) ) ;
19
20
root = path . join ( process . cwd ( ) , `test-skeleton-app-${ Math . random ( ) . toString ( 36 ) . slice ( 2 ) } ` ) ;
20
21
21
22
constructor ( ) {
You can’t perform that action at this time.
0 commit comments