Skip to content

Commit

Permalink
chore: try fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 5, 2024
1 parent 1c24512 commit 36ec91f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import fs from 'fs-extra'
import { afterAll, beforeEach, expect, it } from 'vitest'

const CLI_PATH = join(__dirname, '../bin/index.js')
const genPath = join(__dirname, '..', '.temp')
const genPath = join(__dirname, '..', '.temp', randomStr())

function randomStr() {
return Math.random().toString(36).slice(2)
}

async function run(params: string[] = [], env = {
SKIP_PROMPT: '1',
Expand Down

0 comments on commit 36ec91f

Please sign in to comment.