Skip to content

Commit

Permalink
chore(generate): log warning when skipping an unsupported test
Browse files Browse the repository at this point in the history
  • Loading branch information
j33ty committed Nov 4, 2024
1 parent a71e3ec commit dc20851
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ process.stdin

if (entry._type === 'test') {
const supported = entry.features.every((f) => SUPPORTED_FEATURES.has(f))
if (!supported) return
if (!supported) {
process.stderr.write(`[warning] Skipping unsupported test: ${entry.name}\n`)
return
}

if (entry.version && !semver.satisfies(GROQ_VERSION, entry.version)) return

Expand Down

0 comments on commit dc20851

Please sign in to comment.