Skip to content

Commit

Permalink
chore(endomoat): update scenario tests w new type info [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Mar 12, 2024
1 parent 62ae6c9 commit 717a413
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/endomoat/test/scenarios.spec.js
Expand Up @@ -45,6 +45,7 @@ const testScenario = test.macro(
for await (const scenario of loadScenarios()) {
if (
!(
scenario.context &&
Object.keys(scenario.context).length === 0 &&
scenario.context.constructor === Object
)
Expand All @@ -59,7 +60,7 @@ for await (const scenario of loadScenarios()) {
}

// TODO fix
if (FAILING_SCENARIOS.has(scenario.name)) {
if (scenario.name && FAILING_SCENARIOS.has(scenario.name)) {
test.failing(`${scenario.name} - `, testScenario, scenario)
continue
}
Expand All @@ -71,10 +72,10 @@ for await (const scenario of loadScenarios()) {
}

// TODO implement scuttling
if (scenario.name.startsWith('scuttle')) {
if (scenario.name?.startsWith('scuttle')) {
test.todo(`${scenario.name} - scuttling unsupported`)
continue
}

test.serial(scenario.name, testScenario, scenario)
test.serial(scenario.name ?? '(unknown scenario)', testScenario, scenario)
}

0 comments on commit 717a413

Please sign in to comment.