Skip to content

Commit

Permalink
now correct and more robust check
Browse files Browse the repository at this point in the history
  • Loading branch information
Fargekritt committed Jan 14, 2025
1 parent a4f4fe0 commit 77934e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/k6/scripts/generate_all_tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ if (-not (Test-Path $DirectoryPath -PathType Container)) {
}

# Get all *.js files in the directory except for "all-tests.js"
$jsFiles = Get-ChildItem -Path $DirectoryPath -Filter "*.js" | Where-Object { $_.Name -ne "all-tests.js" } | Where-Object { -not $_.Directory.FullName.Contains("/performance/") }
$jsFiles = Get-ChildItem -Path $DirectoryPath -Filter "*.js" |
Where-Object { $_.Name -ne "all-tests.js" } |
Where-Object { $_.Directory.FullName -notlike "$(Join-Path -ChildPath "$(Join-Path 'performance' '*')" -Path *)" } # OS agnostic "*/performance/*"

# Create the import strings
$importStatements = $jsFiles | ForEach-Object {
Expand Down

0 comments on commit 77934e7

Please sign in to comment.