<commit_before>Import-Module "$PSScriptRoot\..\CommonTestHelper.psm1" -Force

$script:dscResourceModuleName = 'xPSDesiredStateConfiguration'
$script:dscResourceName = 'MSFT_xPackageResource'
$script:testType = 'Unit'

Initialize-DscResourceUnitTest `
    -DscResourceModuleName $script:dscResourceModuleName `
    -DscResourceName $script:dscResourceName `
    -TestType $script:testType `
| Out-Null

InModuleScope "$script:dscResourceName" {
    Describe "$script:dscResourceName $script:testType Tests" {
        BeforeAll {
            Import-Module "$PSScriptRoot\MSFT_xPackageResource.TestHelper.psm1" -Force

            $script:skipHttpsTest = $true

            $script:testDirectoryPath = Join-Path -Path $PSScriptRoot -ChildPath 'MSFT_xPackageResourceTests'

            if (Test-Path -Path $script:testDirectoryPath)
            {
                Remove-Item -Path $script:testDirectoryPath -Recurse -Force | Out-Null
            }

            New-Item -Path $script:testDirectoryPath -ItemType 'Directory' | Out-Null
<commit_msg>Fixing variables that Pester doesn't like.<commit_after>Import-Module "$PSScriptRoot\..\CommonTestHelper.psm1" -Force

$script:dscResourceModuleName = 'xPSDesiredStateConfiguration'
$script:dscResourceName = 'MSFT_xPackageResource'
$script:testType = 'Unit'

Initialize-DscResourceUnitTest `
    -DscResourceModuleName $script:dscResourceModuleName `
    -DscResourceName $script:dscResourceName `
    -TestType $script:testType `
| Out-Null

InModuleScope 'MSFT_xPackageResource' {
    Describe 'MSFT_xPackageResource Unit Tests" {
        BeforeAll {
            Import-Module "$PSScriptRoot\MSFT_xPackageResource.TestHelper.psm1" -Force

            $script:skipHttpsTest = $true

            $script:testDirectoryPath = Join-Path -Path $PSScriptRoot -ChildPath 'MSFT_xPackageResourceTests'

            if (Test-Path -Path $script:testDirectoryPath)
            {
                Remove-Item -Path $script:testDirectoryPath -Recurse -Force | Out-Null
            }

            New-Item -Path $script:testDirectoryPath -ItemType 'Directory' | Out-Null

{'fraction_non_alphanumeric': 0.09623630300142925, 'fraction_numerical': 0.0019056693663649356, 'mean_word_length': 3.4967880085653107, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6259589', 'n_tokens_mistral': 636, 'n_tokens_neox': 618, 'n_words': 107}