Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support to mark a test file as --todo with {todo: "true"} #15633

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pfgithub
Copy link
Contributor

@pfgithub pfgithub commented Dec 7, 2024

What does this PR do?

test.todo() is basically just test.skip() with a different name unless you use the --todo flag. This adds the ability to mark specific files to always run todo tests and ensure they fail, so that specific files can opt-in to running todo tests.

// a.test.ts
import { test, expect } from "bun:test" with { todo: "true" };

test.todo("fixme", () => expect(value()).toBe(1));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants