Skip to content

Commit 5397021

Browse files
committed
Only consider .plz files in tests for examples
1 parent dee7d4f commit 5397021

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/examples.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ const pleasePath = path.join(
1212
)
1313

1414
suite('examples', async () => {
15-
for (const exampleFileName of await fs.readdir(exampleDirectoryPath)) {
15+
const exampleFileNames = (await fs.readdir(exampleDirectoryPath)).filter(
16+
fileName => fileName.endsWith('.plz'),
17+
)
18+
for (const exampleFileName of exampleFileNames) {
1619
const exampleFilePath = path.join(exampleDirectoryPath, exampleFileName)
1720
// TODO: Use snapshot testing instead of merely checking for errors.
1821
test(

0 commit comments

Comments
 (0)