{ "version": "5.0.4", "description": "Pester is a test and mock framework for PowerShell.", "homepage": "https://github.com/pester/Pester", "license": "Apache-2.0", "url": "https://github.com/pester/pester/archive/5.0.4.tar.gz", "hash": "327e88ebf84a42533d07172ff5f34855054ed875a5751ca61c89849966df338b", "extract_dir": "pester-5.0.4", "bin": "bin\\pester.bat", "post_install": [ "$import = \"try { `$null = gcm pester -ea stop; import-module `\"$dir\\pester.psm1`\" } catch { }\"", "", "if($profile) {", " 'adding pester to powershell profile...'", " if(!(test-path $profile)) {", " 'powershell profile doesn''t exist. creating...'", " $profile_dir = split-path $profile", " if(!(test-path $profile_dir)) { mkdir $profile_dir > $null }", " '' > $profile", " }", "", " $text = get-content $profile", " if (($text | sls 'pester') -eq $null) {", " $new_profile = @($text) + $import", " $new_profile > $profile", " success 'pester added to powershell profile.'", " }", "} else { warn 'no powershell profile found. the pester module will not be imported each session.' }", "", "'importing pester for current session...'", "iex \"$import\"" ], "checkver": "github", "autoupdate": { "url": "https://github.com/pester/pester/archive/$version.tar.gz", "extract_dir": "pester-$version" } }