File tree Expand file tree Collapse file tree
build-tests/rush-package-manager-integration-test/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22// See LICENSE in the project root for license information.
33
4+ import * as os from 'node:os' ;
45import * as path from 'node:path' ;
56
67import type { ITerminal } from '@rushstack/terminal' ;
@@ -14,7 +15,7 @@ import { TestHelper } from './TestHelper';
1415export async function testNpmModeAsync ( terminal : ITerminal ) : Promise < void > {
1516 const helper : TestHelper = new TestHelper ( terminal ) ;
1617 // Use system temp directory to avoid rush init detecting parent rush.json
17- const testRepoPath : string = path . join ( '/tmp' , 'rush-package-manager-test' , 'npm-test-repo' ) ;
18+ const testRepoPath : string = path . join ( os . tmpdir ( ) , 'rush-package-manager-test' , 'npm-test-repo' ) ;
1819
1920 terminal . writeLine ( '==========================================' ) ;
2021 terminal . writeLine ( 'Rush NPM Mode Integration Test' ) ;
Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22// See LICENSE in the project root for license information.
33
4+ import * as os from 'node:os' ;
45import * as path from 'node:path' ;
56
67import type { ITerminal } from '@rushstack/terminal' ;
@@ -14,7 +15,7 @@ import { TestHelper } from './TestHelper';
1415export async function testYarnModeAsync ( terminal : ITerminal ) : Promise < void > {
1516 const helper : TestHelper = new TestHelper ( terminal ) ;
1617 // Use system temp directory to avoid rush init detecting parent rush.json
17- const testRepoPath : string = path . join ( '/tmp' , 'rush-package-manager-test' , 'yarn-test-repo' ) ;
18+ const testRepoPath : string = path . join ( os . tmpdir ( ) , 'rush-package-manager-test' , 'yarn-test-repo' ) ;
1819
1920 terminal . writeLine ( '==========================================' ) ;
2021 terminal . writeLine ( 'Rush Yarn Mode Integration Test' ) ;
You can’t perform that action at this time.
0 commit comments