fix for ts tests

This commit is contained in:
Matthew Rathbone
2024-04-17 16:45:24 -05:00
parent cb59664c5a
commit fb214dfdc1

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# Use $(...) for command substitution to capture output of find command
FILES=$(find apps/studio/tests/integration/lib/db -name "*spec.js")
FILES=$(find apps/studio/tests/integration/lib/db -name "*spec.*")
# Convert output to a JSON array of arrays with filename and full path
JSON=$(echo "$FILES" | jq -Rsc 'split("\n") | map(select(. != "") | [(. | split("/") | last), .])')