find-test-names
Advanced tools
Comparing version 1.10.0 to 1.10.1
{ | ||
"name": "find-test-names", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "Given a Mocha / Cypress spec file, returns the list of suite and test names", | ||
@@ -5,0 +5,0 @@ "main": "src", |
@@ -90,2 +90,3 @@ const babel = require('@babel/parser') | ||
type: 'suite', | ||
pending, | ||
} | ||
@@ -97,2 +98,10 @@ | ||
if (!pending) { | ||
// the suite might be pending by the virtue of only having the name | ||
// example: describe("is pending") | ||
if (node.arguments.length === 1) { | ||
suiteInfo.pending = true | ||
} | ||
} | ||
const tags = getTags(source, node) | ||
@@ -106,3 +115,3 @@ if (Array.isArray(tags) && tags.length > 0) { | ||
tags: suiteInfo.tags, | ||
pending, | ||
pending: suiteInfo.pending, | ||
type: 'suite', | ||
@@ -109,0 +118,0 @@ tests: [], |
20672
503