diff options
Diffstat (limited to 'test/snippets/segfault-todo.test.js')
-rw-r--r-- | test/snippets/segfault-todo.test.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/snippets/segfault-todo.test.js b/test/snippets/segfault-todo.test.js new file mode 100644 index 000000000..169bc2c40 --- /dev/null +++ b/test/snippets/segfault-todo.test.js @@ -0,0 +1,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 +}); |