first commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { promises as fs } from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
const featuresDir = path.resolve("specs/features");
|
||||
const files = await fs.readdir(featuresDir);
|
||||
const featureFiles = files.filter((file) => file.endsWith(".feature"));
|
||||
|
||||
if (featureFiles.length < 2) {
|
||||
console.error("At least two feature files are required");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log(`Gherkin check passed (${featureFiles.length} files)`);
|
||||
Reference in New Issue
Block a user