diff options
author | 2023-02-21 11:47:13 -0800 | |
---|---|---|
committer | 2023-02-21 11:47:13 -0800 | |
commit | d786dd6c0bd0c8b4f4444ab55cbcb479e8d87b7e (patch) | |
tree | 059749b2af3d294d1ac59886123157f86bf3d1a2 /test/bun.js/test-test.test.ts | |
parent | e21796acf506094ec39289c868b33a40ca505b74 (diff) | |
download | bun-d786dd6c0bd0c8b4f4444ab55cbcb479e8d87b7e.tar.gz bun-d786dd6c0bd0c8b4f4444ab55cbcb479e8d87b7e.tar.zst bun-d786dd6c0bd0c8b4f4444ab55cbcb479e8d87b7e.zip |
Update test runner output with colors and diffs (#2122)
* add zig-diff
* move diff functions
* toHaveProperty diff for objects
* use formatter
* format labels
* move work to format, diff when it makes sense
* remove comptime, dim equal slices
* order before diff
* line diffs
* add diffz
* switch to diffz
* add `diffLines()` function
* small `prettyFmt()` bug fix
* test runner color output
* update `toBe()` error output
* fix test
* diff method, fix crash
* fix link test
* remove `isRegex`
Diffstat (limited to 'test/bun.js/test-test.test.ts')
-rw-r--r-- | test/bun.js/test-test.test.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/bun.js/test-test.test.ts b/test/bun.js/test-test.test.ts index 00a760abf..06573cc7d 100644 --- a/test/bun.js/test-test.test.ts +++ b/test/bun.js/test-test.test.ts @@ -239,11 +239,9 @@ test("deepEquals throw getters", () => { } } - try { + expect(() => { expect(new B()).not.toEqual(new C()); - } catch (e) { - expect(e.message).toContain("b"); - } + }).toThrow(); let o = [ { |