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

linter: panic in jest/no_conditional_expect #3325

Closed
Boshen opened this issue May 17, 2024 · 0 comments · Fixed by #3330
Closed

linter: panic in jest/no_conditional_expect #3325

Boshen opened this issue May 17, 2024 · 0 comments · Fixed by #3330
Assignees
Labels
C-bug Category - Bug

Comments

@Boshen
Copy link
Member

Boshen commented May 17, 2024

Found in https://github.com/oxc-project/oxlint-ecosystem-ci/actions/runs/9125633095/job/25092301842

/** @type {(vnode: import('../../src/internal').VNode) => void} */
function verifyVNodeTree(vnode) {
	if (vnode._nextDom) {
		expect.fail('vnode should not have _nextDom:' + vnode._nextDom);
	}

	if (vnode._children) {
		for (let child of vnode._children) {
			if (child) {
				verifyVNodeTree(child);
			}
		}
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category - Bug
Projects
None yet
2 participants