aboutsummaryrefslogtreecommitdiff
path: root/test/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-18feat: add self-closing & can-have-content (#4206)Gravatar Brúnó Salomon 1-0/+39
2023-08-18Implement BigIntStats (#4208)Gravatar dave caruso 1-0/+35
* Implement BigIntStats * changes * rename test * comment * test changes?
2023-08-18fix `--bail` testGravatar Dylan Conway 1-1/+1
2023-08-17Add `util.inspect.custom` support to `util.inspect/Bun.inspect/console.log` ↵Gravatar dave caruso 3-23/+199
(#4194) * start work on util.inspect.custom * asdf * finish util inspect custom inspect * inspect * fix tests * revert * tidy * revert * oops * test * fix issues
2023-08-17Support Nitro (#4098)Gravatar dave caruso 2-0/+43
* Add formatWithOptions * tests and tweaks * adjust * changes * hi * add mark/measure stubs * stuff * allow unix absolute paths here * typo * rebase * fix stats
2023-08-17Allow IncomingRequest.req to be overwritten. (#4154)Gravatar dave caruso 1-0/+17
* Allow IncomingRequest.req to be overwritten. * add test * fix test * yoo
2023-08-17Fix(node:fs): add buffer parameter in fs.read callback. (#4191)Gravatar Ai Hoshino 1-0/+116
Close: #4178
2023-08-16Fix leaking .ptr (#4181)Gravatar Jarred Sumner 1-1/+11
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-16Fix prisma linux generation (#4150)Gravatar Ciro Spaciari 6-11/+28
* check * fmt + fix * fmt * ops * add more targets * more targets * oops * update bun lock and prisma * manually add openssl * targets on sqlite
2023-08-15Create domjit.test.ts (#4173)Gravatar Dylan Conway 1-0/+103
2023-08-15Fix event loop issue with `Bun.connect` (#4157)Gravatar dave caruso 2-0/+70
* Fix event loop issue with Bun.connect * sorry * add test and fix another edge case
2023-08-15fix importing too long of strings (#4155)Gravatar dave caruso 1-0/+21
2023-08-12Fix worker event loop ref/unref + leak (#4114)Gravatar dave caruso 10-24/+78
* make more tests pass * worker changes * fix some bugs * remove this * progress * uh * okay * remove console log * a * comment assert for later * mergable state * remove test * remove test
2023-08-10async realpath (#4117)Gravatar Jarred Sumner 1-1/+31
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-10bun test: format description of test.each (#4092)Gravatar Jacques 1-5/+9
* bun test: format description * add tests for tests * only --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-08-10add util.formatWithOptions (#4090)Gravatar dave caruso 1-0/+10
* Add formatWithOptions * tests and tweaks * adjust --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-08-09Fix constructing buffer from a UTF16 string with the Latin1 encoding. (#4086)Gravatar Ai Hoshino 1-0/+12
Close: #3914
2023-08-08Update main-worker-file.jsGravatar Jarred Sumner 1-0/+1
2023-08-08Run prettierGravatar Jarred Sumner 1-47/+51
2023-08-08feat(bun:test) add support for test.each() and describe.each() (#4047)Gravatar Jacques 1-0/+51
* rename callback to func * update testscope to handle function arguments * works * big cleanup * works in debug, not release * fix memory issue & update tests * catch & str test * write types for each() & switch tests to ts * rm & typo * move some code around & support describe * review changes
2023-08-08worker tests (#4058)Gravatar dave caruso 2-1/+51
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-08-08feat(bun/test): Implement "toSatisfy" & "toIncludeRepeated" (fwup) (#3651)Gravatar Tiramify (A.K. Daniel) 1-2/+74
* Fix merge issues * oop * make codegen * Fix build issues --------- Co-authored-by: dave caruso <me@paperdave.net>
2023-08-08Set exports to {} in user-constructed CommonJSModuleRecords (#4076)Gravatar dave caruso 1-1/+4
2023-08-08Fix require("console") #3820 (#4073)Gravatar dave caruso 1-0/+4
* Fix #3820 * Add Module (#4074)
2023-08-081. Check if the argument is an empty string in `path.format`. (#4064)Gravatar Ai Hoshino 1-63/+196
2. Avoid duplicating '/' at the beginning of the path. Close: #4005
2023-08-08import bun (#4055)Gravatar Jarred Sumner 1-0/+4
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-08Enable `Headers.prototype.getSetCookie`Gravatar Jarred Sumner 1-2/+1
Fixes #4057
2023-08-07Add `env` option for `node:worker_threads` (#4052)Gravatar dave caruso 5-3/+149
* almost works * env stuff * test fixes * wtfmove * ok * ok * ref by default * it now does the ref stuff by default * cool
2023-08-07Fix `Bun.hash` functions (#4054)Gravatar jhmaster 1-18/+21
* fix `Bun.hash` functions to behave as expected * update Bun.hash tests * properly test the returned hash * include murmur32v2 * update Bun.hash docs * run fmt
2023-08-07implement fetching data urls (#4000)Gravatar Dylan Conway 2-0/+115
* fetch data urls * `byteSlice` * deinit slice * allocate `mime_type` string if needed * `content_type_allocated` and uncomment tests * `str_` * createAtom and slice decode result
2023-08-07fix iterating headers with `set-cookie` (#4048)Gravatar Dylan Conway 2-13/+21
* fix iterating headers with `set-cookie` * a test * move work to `HTTPHeaderMap::set` * append set-cookie after sort * remove compare function
2023-08-07WASM test analyzer (#4043)Gravatar Jarred Sumner 1-2/+0
* wasm * WASM test scanner * Update Makefile * Update Makefile * Configurable heap limit * slightly better error * Update js_parser.zig * Update path.test.js * Update node.mjs --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-07Fix `path.normalize` edge case. (#4042)Gravatar Ai Hoshino 1-0/+1
Close: #4041
2023-08-06Fixes #4001 (#4034)Gravatar Jarred Sumner 1-0/+82
* Avoid a utf8 conversion in isDetached * Fixes #4001 * hit the long url codepath --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-06Fixes #4029 and fixes #4022 (#4032)Gravatar Jarred Sumner 1-22/+22
* Fixes #4029 and Fixes #4022 Fixes #4029 Fixes #4022 * Add test for all the fetches --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-06Fixes #3129 (#4018)Gravatar Jarred Sumner 1-6/+7
* Fixes #3129 * add CloseEvent --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-06Code coverage for `bun test` (#3975)Gravatar Jarred Sumner 1-1/+0
* WIP code coverage initial commit * almost works * one approach * Code Coverage * Update WebKit * it works but is not yet accurate * skip double ascii check * wrapper * it works but i'm not sure what to do about blocks * hide blocks for now * Update ZigSourceProvider.cpp * Create coverage.md * Update nav.ts --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-06feat: impl `dns.getServers` (#3982)Gravatar Ai Hoshino 1-0/+33
* feat: impl `dns.getServers` Close: #3981 * check return value of `ares_inet_ntop`
2023-08-04Fixes #3991Gravatar Jarred Sumner 1-0/+36
Fixes #3991
2023-08-04FFI typo (#3973)Gravatar dave caruso 1-1/+6
* FFI typo * add tests * it was a newline
2023-08-04Buffer.copy should ignore out-of-range sourceEnd (#3971)Gravatar Yifei Wang 1-16/+32
2023-08-03Fix thread safety issue in async fs functions file paths (#3964)Gravatar Jarred Sumner 1-0/+33
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-03Make the test betterGravatar Jarred Sumner 1-1/+2
2023-08-03Test for Module.wrap()Gravatar Jarred Sumner 1-1/+7
2023-08-03Fix edge case in `path.relative`. (#3952)Gravatar Ai Hoshino 1-0/+8
Close: #3924
2023-08-03Bunch of fixes (#3516)Gravatar Ashcon Partovi 4-2537/+2542
* Fix #3497 * Fix #3497 * Run prettier * Fix package.json * remove this too * yeah * Fix missing tests * Use native for utf-8-validate * Add module ID names to builtins * Defer evaluation of ESM & CJS modules until link time * Use builtin name for exports in plugins * Add module IDs to builtins * Update JSC build with new flag * WebKit upgrade fixes * Update WebKit * prettier * Upgrade WebKit * bump * Update once again * Add visitAdditionalChildren, remove .fill() usage * Update process.test.js * Update fs.test.ts --------- Co-authored-by: dave caruso <me@paperdave.net> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-03Fix the string encoding in `path.extname`. (#3949)Gravatar Ai Hoshino 1-0/+5
Close: #3948
2023-08-02Fix http write (#3939)Gravatar dave caruso 1-0/+55
* Fix encoding problem when uploading a binary file. Close: #3116 * use BufferList * Finish rebase --------- Co-authored-by: Hanaasagi <ambiguous404@gmail.com>
2023-08-02Implement `node:worker_threads` (#3923)Gravatar Jarred Sumner 4-22/+115
* Start to implement `worker_threads` * more * more!! * more * Update bundle_v2.zig * delete outdated tests * `receiveMessageOnPort` * props test and export default * fix merge * not implemented tests * individual imports * `receiveMessageOnPort` tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-08-02Implement `node:diagnostics_channel` (#3934)Gravatar Ashcon Partovi 1-0/+371
* Add types for `node:async_hooks` * Implement \`node:diagnostics_channel\`