aboutsummaryrefslogtreecommitdiff
path: root/test/snippets/segfault-todo.test.js
blob: 169bc2c405ade40710eddd1899de36b8353eeb77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// This file will segfault the test runner with BUN_GARBAGE_COLLECTOR_LEVEL=2
import { expect, it, describe } from "bun:test";

it("TEST 1", () => {});

describe("DESC 1", () => {});

it.todo("TEST 2", () => {
  expect(1).toBe(2);
});

it.todo("TEST 3", () => {
  expect(1).toBe(2); // SEGFAULT HERE
});