Skip to content

Commit 0bdb047

Browse files
committed
test: remove ci specific logic
1 parent 88c3b71 commit 0bdb047

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

tests/legacy-cli/e2e/utils/assets.ts

-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ export async function createProjectFromAsset(
4848
process.chdir(dir);
4949
if (!useNpmPackages) {
5050
await useBuiltPackages();
51-
if (!getGlobalVariable('ci')) {
52-
const testRegistry = getGlobalVariable('package-registry');
53-
await writeFile('.npmrc', `registry=${testRegistry}`);
54-
}
5551
}
5652

5753
if (!skipInstall) {

tests/legacy-cli/e2e/utils/packages.ts

-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ export async function setRegistry(useTestRegistry: boolean): Promise<void> {
4949
? getGlobalVariable('package-registry')
5050
: 'https://registry.npmjs.org';
5151

52-
const isCI = getGlobalVariable('ci');
53-
5452
// Ensure local test registry is used when outside a project
5553
// Yarn supports both `NPM_CONFIG_REGISTRY` and `YARN_REGISTRY`.
5654
process.env['NPM_CONFIG_REGISTRY'] = url;

tests/legacy-cli/e2e_runner.ts

-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ if (testsToRun.length == allTests.length) {
149149
console.log(['Tests:', ...testsToRun].join('\n '));
150150

151151
setGlobalVariable('argv', argv);
152-
setGlobalVariable('ci', process.env['CI']?.toLowerCase() === 'true' || process.env['CI'] === '1');
153152
setGlobalVariable('package-manager', argv.yarn ? 'yarn' : 'npm');
154153

155154
Promise.all([findFreePort(), findFreePort()])

0 commit comments

Comments
 (0)