Skip to content

Commit f0dae38

Browse files
Mazuhmazuh
authored andcommitted
fix tests for windows
removing directories with .sync is limited on windows so I refactored my test to always use an available folder instead of concurring with the existing one
1 parent bef3f12 commit f0dae38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/generate.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function define (t) {
133133
t.plan(14 + 3)
134134
try {
135135
rimraf.sync(workdir)
136-
await pExec('node ../generate workdir --standardlint', { cwd: path.join(workdir, '..') })
136+
await pExec('node ../generate workdir --standardlint || node ..\\generate workdir --standardlint', { cwd: path.join(workdir, '..') })
137137

138138
await verifyPkg(t)
139139

0 commit comments

Comments
 (0)