mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-17 17:01:02 -04:00
test(execute): allow *.sb and *.sb3 'execute' tests
This commit is contained in:
parent
281a3e256a
commit
e4f7732efb
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue