Skip to content

Commit e417e48

Browse files
committed
chore: update .env.example file
1 parent 8ade2c4 commit e417e48

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
TEST_FILE_NAME=github-swagger.ts
2-
TEST_SCHEMA_VERSION=v3
2+
TEST_SCHEMA_VERSION=v3.0#v2.0|v3.0
33
TEST_WITH_DEBUG=true

tests/allSchemas.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ let allSchemas = [
1616
];
1717

1818
if (process.env.TEST_FILE_NAME) {
19-
console.warn("TEST ONLY", process.env.TEST_FILE_NAME);
2019
allSchemas = allSchemas.filter((schema) => schema.apiFileName === process.env.TEST_FILE_NAME);
20+
console.warn("TEST ONLY", process.env.TEST_FILE_NAME, 'found:', allSchemas.map(it => it.apiFileName).join(', ') || '<nothing>');
2121
}
2222

2323
if (process.env.TEST_SCHEMA_VERSION) {
24-
console.warn("TEST ONLY", process.env.TEST_SCHEMA_VERSION);
2524
allSchemas = allSchemas.filter((schema) => schema.outputPath.endsWith(process.env.TEST_SCHEMA_VERSION));
25+
console.warn("TEST ONLY", process.env.TEST_SCHEMA_VERSION, 'found:', allSchemas.map(it => it.apiFileName).join(', ') || '<nothing>');
26+
}
27+
28+
if (!allSchemas.length) {
29+
console.warn("TEST SCHEMES NOT FOUND")
2630
}
2731

2832
module.exports = allSchemas;

0 commit comments

Comments
 (0)