Skip to content

Commit 85cf036

Browse files
committed
ci: fix cleanup on Windows
1 parent d0528b1 commit 85cf036

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
"prettier": "2.0.5",
128128
"prettier-eslint": "11.0.0",
129129
"qunit-dom": "1.2.0",
130+
"rimraf": "^3.0.2",
130131
"testdouble": "3.16.0",
131132
"ts-node": "8.10.2",
132133
"typescript": "3.7.5"

ts/tests/helpers/skeleton-app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import execa from 'execa';
44
import { EventEmitter } from 'events';
55
import got from 'got';
66
import debugLib from 'debug';
7+
import rimraf from 'rimraf';
78

89
const debug = debugLib('skeleton-app');
910

@@ -15,7 +16,7 @@ const getEmberPort = (() => {
1516
export default class SkeletonApp {
1617
port = getEmberPort();
1718
watched: WatchedBuild | null = null;
18-
cleanupTempDir = () => fs.removeSync(this.root);
19+
cleanupTempDir = () => rimraf(this.root, (error) => console.error(error));
1920
root = path.join(process.cwd(), `test-skeleton-app-${Math.random().toString(36).slice(2)}`);
2021

2122
constructor() {

0 commit comments

Comments
 (0)