search for test files instead of explicitly name them
+import { readdir } from 'fs/promises';
import * as path from 'path';
class Test {
@@ -57,7 +58,8 @@ export class Context {
export async function run(): Promise<void> {
const context = new Context();
- const testFiles = ["launch_config.test.js", "runnable_env.test.js"];
+
+ const testFiles = (await readdir(path.resolve(__dirname))).filter(name => name.endsWith('.test.js'));
for (const testFile of testFiles) {
try {
const testModule = require(path.resolve(__dirname, testFile));
