Skip to content

Commit c7899ae

Browse files
committed
fix: create tmp dir correctly [sc-23256]
1 parent ea30198 commit c7899ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/services/util.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { getProxyForUrl } from 'proxy-from-env'
1010
import { httpOverHttp, httpsOverHttp, httpOverHttps, httpsOverHttps } from 'tunnel'
1111
import { Archiver, create } from 'archiver'
1212
import { glob } from 'glob'
13-
import { Parser } from './check-parser/parser'
13+
import os from 'node:os'
1414
import { checklyStorage } from '../rest/api'
1515
import { loadFile } from './checkly-config-loader'
1616

@@ -233,7 +233,7 @@ export async function bundlePlayWrightProject (playwrightConfig: string): Promis
233233
const dir = path.resolve(path.dirname(playwrightConfig))
234234
const filePath = path.resolve(dir, playwrightConfig)
235235
const pwtConfig = await loadFile(filePath)
236-
const outputFolder = await fs.mkdtemp('cli-')
236+
const outputFolder = await fs.mkdtemp(path.join(os.tmpdir(), 'cli-'))
237237
const outputDir = path.join(outputFolder, 'playwright-project.tar.gz')
238238
const output = fsSync.createWriteStream(outputDir)
239239

0 commit comments

Comments
 (0)