Skip to content

Commit

Permalink
fix: only mode (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Dec 4, 2021
1 parent bfd14d7 commit 801bff1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export async function runTask(task: Task, ctx: RunnerContext) {
await reporter.onTaskBegin?.(task, ctx)
await beforeEachHook.fire(task)

if (task.suite.mode === 'skip' || task.mode === 'skip') {
if (task.suite.mode === 'skip' || task.mode === 'skip'
|| !(ctx.mode === 'only' && (task.suite.mode === 'only' || task.mode === 'only'))) {
task.status = 'skip'
}
else if (task.suite.mode === 'todo' || task.mode === 'todo') {
Expand Down

0 comments on commit 801bff1

Please sign in to comment.