aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-01clean up `Promise` handling (#1697)Gravatar Alex Lam S.L 1-18/+19
2023-01-01Handle extremely unlikely edgecaseGravatar Jarred SUmner 1-10/+21
2022-12-31[jest] fix and improve hooks (#1689)Gravatar Alex Lam S.L 1-3/+49
- wait for async hooks to complete before running tests - add support for `done(err)` callbacks in hooks fixes #1688
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-17/+17
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-12-21fix jest hooks in bun-test (#1639)Gravatar Ethan Burrell 1-2/+3
* fix(jest) fix broken jest hooks * add tests
2022-12-04[bun:test] Fix crash when `test("foo")` is called without passing a functionGravatar Jarred Sumner 1-6/+13
2022-12-02matchers for less than and greater than (#1573)Gravatar Dylan Conway 1-4/+252
* toBeGreaterThan with tests * toBeGreaterThanOrEqual and tests * toBeLessThan and toBeLessThanOrEqual with tests * expect types * switch expressions
2022-12-01bun test `toStrictEqual` (#1568)Gravatar Dylan Conway 1-1/+42
* toStrictEqual and bug fix in deepEqual * rebase Remove some dead bindings code * remove debugging test * canGetIndexQuickly for array holes * isStrict template Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-10/+10
2022-11-28toHaveProperty and tests (#1558)Gravatar Dylan Conway 2-2/+72
* toHaveProperty and tests * emoji tests
2022-11-23Bun.deepEquals and expect().toEqual() (#1548)Gravatar Dylan Conway 1-1/+40
* all of deepEquals * remove comment, tests, move inline function
2022-11-20Update jest.zigGravatar Jarred Sumner 1-1/+1
2022-11-20[bun:test] Fix bug with returning a non-promise object in a `test` or `it` ↵Gravatar Jarred Sumner 1-25/+27
function
2022-11-19Introduce `BUN_GARBAGE_COLLECTOR_LEVEL` debug environment variableGravatar Jarred Sumner 1-1/+26
2022-11-18bun test matchers and tests (#1526)Gravatar Dylan Conway 2-50/+361
* ignore webkit for cherry-pick * toContain and toBeTruthy * toBe null, undefined, falsy, toHaveProperty, .not * markBindings * remove toHaveProperty, undo ignore webkit, more tests * undo ignore webkit * remove bad tests * check if length property exists for toHaveLength() * fix call signature * handle argument that is not an integer * getLengthOfArray returns u64 * switch to truncate * toHaveLength() edge cases * add toBooleanSlow() * infinity, nan, negative
2022-11-15add generated getter/setter type with thisValue (#1513)Gravatar Dylan Conway 2-1/+4
2022-11-07[bun:test] Rejected promises should cause tests to failGravatar Jarred Sumner 1-0/+9
2022-11-07[bun:test] Implement `done` callback with support for async functionsGravatar Jarred Sumner 1-11/+126
2022-11-07[bun:test] Implement `expect` in faster Zig bindingsGravatar Jarred Sumner 2-366/+341
2022-10-27feat(core): optimize zig slice (#1408)Gravatar Carter Snook 1-4/+6
* feat(core): optimize zig slice * address concerns
2022-10-15add more loggingGravatar Jarred Sumner 1-2/+2
2022-10-02Fix test expectation counterGravatar Jarred Sumner 1-12/+17
2022-09-30Remove extraneous calls to `.ref()`Gravatar Jarred Sumner 1-4/+4
2022-09-28make bun:test ~300x faster when using http server, websockets, etcGravatar Jarred Sumner 1-53/+226
there was an event loop bug
2022-09-06Move some things to the stackGravatar Jarred Sumner 1-9/+10
2022-08-17New Zig <> C++ bindings generator. +20% faster HTTP serverGravatar Jarred Sumner 1-4/+4
2022-08-06[wiptest] fix calling toBe in describe (#1000)Gravatar Zilin Zhu 1-0/+20
2022-07-11[bun wiptest] Fix copyGravatar Jarred Sumner 1-1/+1
2022-07-02[bindings] Mark more stuff as unreachableGravatar Jarred Sumner 1-11/+2
2022-07-02Rename `defaultErrorHandler` to `runErrorHandler`Gravatar Jarred Sumner 1-4/+4
2022-06-26wip ReadableStream for HTTP(s) ServerGravatar Jarred Sumner 1-2/+2
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-0/+1059