Skip to content

Commit 54c055d

Browse files
committed
use the same directories.root to keep temp files in one place
1 parent 191ec88 commit 54c055d

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

packages/e2e/setup/auth.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-restricted-imports */
21
import {browserFixture} from './browser.js'
32
import {CLI_TIMEOUT, BROWSER_TIMEOUT} from './constants.js'
43
import {globalLog, executables} from './env.js'
@@ -11,7 +10,6 @@ import * as fs from 'fs'
1110
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1211
const log = {log: (_ctx: any, msg: string) => globalLog('auth', msg)}
1312

14-
1513
/**
1614
* Worker-scoped fixture that provides an authenticated CLI session.
1715
*

packages/e2e/setup/global-auth.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* into its own isolated XDG dirs.
77
*/
88

9-
/* eslint-disable no-restricted-imports, @shopify/cli/no-process-cwd */
10-
import {createIsolatedEnv, executables, globalLog} from './env.js'
9+
/* eslint-disable no-restricted-imports */
10+
import {createIsolatedEnv, directories, executables, globalLog} from './env.js'
1111
import {CLI_TIMEOUT, BROWSER_TIMEOUT} from './constants.js'
1212
import {stripAnsi} from '../helpers/strip-ansi.js'
1313
import {waitForText} from '../helpers/wait-for-text.js'
@@ -36,7 +36,7 @@ export default async function globalSetup() {
3636
globalLog('auth', 'global setup starting')
3737

3838
// Create a temp dir for the auth session
39-
const tmpBase = process.env.E2E_TEMP_DIR ?? path.join(process.cwd(), '.e2e-tmp')
39+
const tmpBase = process.env.E2E_TEMP_DIR ?? path.join(directories.root, '.e2e-tmp')
4040
fs.mkdirSync(tmpBase, {recursive: true})
4141
const {xdgEnv} = createIsolatedEnv(tmpBase)
4242

0 commit comments

Comments
 (0)