aboutsummaryrefslogtreecommitdiff
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-04-30Bun Test matchers even/odd. Also, .toContains fix and truthy (#2754)Gravatar Will Richards 2 1-0/+159
* bun test matcher tests for even/odd, few more truthy tests, and fix for contains empty string * implementation of even/odd matchers * didn't add the codegen bindings * linted
2023-04-30test default condition (#2776)Gravatar dave caruso 2-2/+52
2023-05-01[install] handle `devDependencies` of local folders (#2781)Gravatar Alex Lam S.L 1-0/+106
fixes #2653
2023-04-30[install] handle repeated install of GitHub dependency correctly (#2780)Gravatar Alex Lam S.L 1-93/+402
fixes #2602
2023-04-29Put transpiler tests in a separate folderGravatar Jarred Sumner 2-0/+0
2023-04-29Clean up args parsing with `--loader`Gravatar Jarred Sumner 1-7/+2
2023-04-28bundler tests: rest of default.test.ts and starting jsx tests (#2765)Gravatar dave caruso 13-461/+1059
2023-04-28Improves Body.Value life cycle and Signal life cycle on server.zig (#2752)Gravatar Ciro Spaciari 3-8/+43
* reestruct request body value and signal * revert react-hello-world * fix constructInto and test * fmt * fix body nullable * Request can outlive RequestContext * fmt * BodyValue is now HiveRef * hasDecl for Ref and HiveRef * fix deinit call on Ref/HiveRef * adds InlineBlob * fix Bun.inspect when using InlineBlob * revert InlineBlob * Fix mimalloc-debug * Add TODO note * fix: make node:crypto Hash.copy work correctly (#2761) This commit will also: - add a CryptoHasher.copy function - make CryptoHasher.digest reset the hasher so it can be reused Resolves #2651 * :nail_care: * address unicode issue (#2763) * Fix an oopsie * Another oopsie * use inline for * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> * Request can outlive RequestContext * fmt * garantee to have the abort signnal attached to the server before abort the client on bun-server test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Silver <14016168+silversquirl@users.noreply.github.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-04-27:nail_care:Gravatar Jarred Sumner 2-15/+4
2023-04-27fix: make node:crypto Hash.copy work correctly (#2761)Gravatar Silver 2-0/+98
This commit will also: - add a CryptoHasher.copy function - make CryptoHasher.digest reset the hasher so it can be reused Resolves #2651
2023-04-26bundler tests! (#2741)Gravatar dave caruso 7-386/+548
* bundler tests! * tests
2023-04-26Use Ninja to build mimalloc and gitignore test/bun.lockb (#2750)Gravatar Silver 1-0/+1
* build: use ninja to build mimalloc This is both faster than make, and ensures the same generator is always used, even when CMAKE_GENERATOR exists in the environment. * chore: gitignore test/bun.lockb
2023-04-26Fixes #2746 (#2748)Gravatar Jarred Sumner 1-0/+12
* Fixes #2746 * add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-25bundler tests, testing plugins (#2740)Gravatar dave caruso 18-613/+1117
* add cjs2esm stuff * tests * plugin testing
2023-04-24[install] fix `bun add` on non-aliased dependency (#2728)Gravatar Alex Lam S.L 1-0/+64
2023-04-24Continue bundler tests (#2691)Gravatar dave caruso 11-659/+1717
* start refine + skipping some packagejson tests * some more tests * stuff * tests for minify branch * pkgjson * add minify/MergeAdjacentVars * add test for #2699 * more tests! * more tests * finish splitting tests * all but 2 import star tests are good * test
2023-04-24Reduce friction for building with npm (#2723)Gravatar Plecra 1-1/+1
This was the only dependency on bun that I encountered while building the project, and the change to the gitignore ensures that it's easy to make changes after an npm based build
2023-04-21Keep the node crypt otestGravatar Jarred Sumner 1-6/+67
2023-04-21Revert "use a lazyily initialized stream for `node:crypto` `createHash` (#2652)"Gravatar Jarred Sumner 4-80/+903
This reverts commit 3a2fd65f20d3b4e99c89f789acec5e5e40615008.
2023-04-21Revert "implement `node:events` in javascript (#2604)"Gravatar Jarred Sumner 3-451/+96
This reverts commit 96a2ed1040d5a0ca51ae41267cba4f8e5d0a6142.
2023-04-20append if the previous part is not UTF8 (#2705)Gravatar Dylan Conway 1-1/+1
2023-04-20Fix template string folding testGravatar Jarred Sumner 1-16/+17
@paperdave --minify-syntax now causes `true` to print as `!0` and `false` to print as `!1` `undefined` is now `void 0`
2023-04-20Symbol minification (#2695)Gravatar Dylan Conway 1-3/+0
* minify * Update renamer.zig * --minify-whitespace * Speed up minification a little * handle private names * 5% faster minification * use helper function * fix nested scope slots * `bun build --minify` gets another +8% faster * print semicolons afterwards * print semicolon after checking error * after all error checking * Delete code for generating legacy bundes * remove extra whitespace around if statements * print space before import identifier * Use `@constCast` * Make `S.Local#decls` use `BabyList(Decl)` * Add `fromSlice` helper to `BabyList` * Remove unnecessary optional chains * minify `undefined, true, false` * Another @constCast * Implement merge adjacent local var * Support --minify in `bun build --transform` * skip comments when counting character frequencies * Don't wrap commonjs with --transform on (unless targeting bun) * Support --minify in the runtime * Fix edgecase with import * as * don't infinite loop * --trnasform shouldn't mess with require * Only track comments when minifying --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-19fix `make setup` (#2693)Gravatar Alex Lam S.L 1-0/+0
- properly reset `JSC_BASE_DIR` after installing `bun-webkit`
2023-04-18implement `node:events` in javascript (#2604)Gravatar dave caruso 3-96/+451
* initial event emitter reimplementation * implement most of node:events. tests passing * work on emitter * fix importing node:events * work on event emitter tests * event work * event work * event stuff and experimenting with a lazy createHash * cleanup crypto stuff i had on this branch * finish event stuff up * fix error monitor * validate listeners are functions * changes requested
2023-04-17Fixes #2676Gravatar Jarred Sumner 1-0/+22
2023-04-17fix typescript decorators with index and number keys (#2677)Gravatar Dylan Conway 1-0/+31
* handle index property key case * non-method number property * tests for property keys
2023-04-17Get axios working (#2673)Gravatar Jarred Sumner 2-605/+624
* Revive node:http tests * Fix a couple bugs in node:http * possibly breaking: use `"browser"` exports condition last * Make URL validation error better --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-16more bundler tests (#2670)Gravatar dave caruso 5-346/+436
* tests! * run formatters
2023-04-16Fix testGravatar Jarred Sumner 1-1/+1
2023-04-15more work on bundler tests (#2667)Gravatar dave caruso 17-214/+825
* Fix `make dev` reusing old .o file * more bundler tests * document capture * bundler tests * bundler tests * bundler tests * finish up * remove bad thing to merge on main
2023-04-14Support importing `.txt` files as strings (#2660)Gravatar Jarred Sumner 5-0/+38
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-13use a lazyily initialized stream for `node:crypto` `createHash` (#2652)Gravatar dave caruso 5-903/+80
* lazy hash * finish up crypto stuff * remove lockfiles * ok * add pipe test * update this lockfile * remove unrelated crypto benchmark from this file
2023-04-13Update default.test.tsGravatar Jarred Sumner 1-2/+5
2023-04-13Update import-meta.test.jsGravatar Dylan Conway 1-1/+1
2023-04-13fix node-net-test hang (#2649)Gravatar Ciro Spaciari 1-29/+27
* fix tests * fix fmt * fix fmt
2023-04-13Upgrade WebKit (#2643)Gravatar Jarred Sumner 1-1/+1
* Missing export * Regenerate builtins * Fix crash in require() * Various breaking JSC changes * hopefully speed up C++ compilation a little * Skip failing test fo rnow * Update WebKit * Add a comment * Fix error in postinstall * Update WebKit --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-13import file path and fix disabled browser require (#2642)Gravatar Dylan Conway 2-11/+26
* print disabled `require` * bundle file paths * update tests
2023-04-12fix expectBundled precheck (#2641)Gravatar dave caruso 1-1/+1
2023-04-12fix types and add more reliable tests (#2621)Gravatar Ciro Spaciari 2-312/+363
2023-04-12bundler tests (#2635)Gravatar dave caruso 2-73/+310
2023-04-12bundler bug fixes (#2637)Gravatar Dylan Conway 3-6/+6
* append import to outer wrapper prefix * print space * require text loader * import empty esm and cjs * add text to schema
2023-04-12don't increment `i` if escaped (#2639)Gravatar Dylan Conway 1-0/+3
2023-04-12could include `/private/` on macosGravatar Dylan Conway 1-1/+2
2023-04-11finish refining bundler tests (#2623)Gravatar dave caruso 11-829/+1568
* bundler tests * test refining, 257/847 * bundler tests, 298/849 * more bundler tests * finish dce
2023-04-10Implement TOML & JSON support in Bun's new bundler (#2609)Gravatar Jarred Sumner 1-36/+56
* Implement JSON & TOML support in the bundler * Fix failing to bind namespace imports * Support namespace exports better --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-09Remove usages of `void{}` in favor of `{}`Gravatar Jarred Sumner 1-0/+3
See https://github.com/ziglang/zig/issues/15213
2023-04-09Add some test coverage for instantiation expressionsGravatar Jarred Sumner 1-0/+156
Related to #2203
2023-04-09Fixes #2594 (#2600)Gravatar Jarred Sumner 1-0/+16
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-09Update TypeScript parsing to 5.0 (#2593)Gravatar Jarred Sumner 2-137/+467
* update syntax * seems to work, needs tests * This test wasn't supposed to be added * Many bugfixes to TypeScript parser --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>