test(execute): allow *.sb and *.sb3 'execute' tests

This commit is contained in:
Christopher Willis-Ford 2022-07-06 13:26:37 -07:00
parent 281a3e256a
commit e4f7732efb

View file

@ -58,8 +58,11 @@ const whenThreadsComplete = (t, vm, uri, timeLimit = 5000) =>
const executeDir = path.resolve(__dirname, '../fixtures/execute');
// Find files which end in ".sb", ".sb2", or ".sb3"
const fileFilter = /\.sb[23]?$/i;
fs.readdirSync(executeDir)
.filter(uri => uri.endsWith('.sb2'))
.filter(uri => fileFilter.test(uri))
.forEach(uri => {
test(uri, t => {
// Disable logging during this test.