<commit_before>///<reference path="../../../typings/index.d.ts"/>
import getConfigs from '@pnpm/config'
import PnpmError from '@pnpm/error'
import fs = require('mz/fs')
import path = require('path')
import test = require('tape')
import tempy = require('tempy')

import './findBestGlobalPrefixOnWindows'

delete process.env['npm_config_depth']
// To override any local settings,
// we force the default value of independent-leaves
process.env['npm_config_independent_leaves'] = 'false'

test('getConfigs()', async (t) => {
  const { configs } = await getConfigs({
    cliArgs: {},
    packageManager: {
      name: 'pnpm',
      version: '1.0.0',
    },<commit_msg>test: more stable @pnpm/config tests<commit_after>///<reference path="../../../typings/index.d.ts"/>
import getConfigs from '@pnpm/config'
import PnpmError from '@pnpm/error'
import fs = require('mz/fs')
import path = require('path')
import test = require('tape')
import tempy = require('tempy')

import './findBestGlobalPrefixOnWindows'

// To override any local settings,
// we force the default values of configs
delete process.env['npm_config_depth']
process.env['npm_config_independent_leaves'] = 'false'
process.env['npm_config_hoist'] = 'true'

test('getConfigs()', async (t) => {
  const { configs } = await getConfigs({
    cliArgs: {},
    packageManager: {
      name: 'pnpm',
      version: '1.0.0',
    },
{'fraction_non_alphanumeric': 0.16642547033285093, 'fraction_numerical': 0.004341534008683068, 'mean_word_length': 4.2988505747126435, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3686780', 'n_tokens_mistral': 453, 'n_tokens_neox': 439, 'n_words': 112}