aboutsummaryrefslogtreecommitdiff
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-22isBinary (#5944)Gravatar Dylan Conway 1-1/+25
2023-09-22fix(runtime): exclude unevaluated module in `require.cache` (#5903)Gravatar Ai Hoshino 1-0/+1
Close: #5898
2023-09-21Implement module.parent (#5889)bun-v1.0.3Gravatar dave caruso 2-0/+17
* Make module.parent work * yay * oops * yay
2023-09-21fix #5865 (#5890)Gravatar Dylan Conway 1-0/+6
* make sure types are the same * tests
2023-09-21Hide env elapsed time when loglevel=info (#5882)Gravatar Colin McDonnell 1-1/+1
* Hide env elapsed time when loglevel=info * Updates * Update * Fix test
2023-09-21Don't use arena in node:fs (#5863)Gravatar Jarred Sumner 1-0/+19
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-21fix: correctly pass the encrypted(bool) property on "Socket" for express.js ↵Gravatar Liz 3-3/+105
(#5878) * fix: correctly pass the encrypted property on "Socket" for express.js Express relies on this for setting the requests protocol. Since this is on a dummy object, a property is simply set with the actual value. Which seams okay as a workaround. * chore: add generated files * chore: add test * refactor: set property directly rather then through a getter
2023-09-21fix(node:fs): use the right copyFile constants (#5874)Gravatar dave caruso 1-1/+30
2023-09-21decorator metadata defaults and rest argsGravatar Dylan Conway 1-0/+52
2023-09-21Fix test failures (#5862)Gravatar Jarred Sumner 2-3/+3
* Fix test failures * Fixes #5851 --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-21On Linux, respect memory limit from cgroups (#5849)Gravatar Jarred Sumner 1-0/+10
* Implement `process.constrainedMemory()` * Add a comment * Handle max * Missing header * We can use WTF::ramSize now * Update WebKit * Update ZigGlobalObject.cpp * WebKit * :scissors: --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-21Revert "feat(encoding): support BOM detection (#5550)"Gravatar Jarred Sumner 1-23/+1
This reverts commit 5f66b4e729105286863a13955b1ed8897b45210e. This caused test failures in text-encoder. cc @WingLim
2023-09-21Don't await pluginsGravatar Jarred Sumner 1-1/+1
2023-09-21Add another testGravatar Jarred Sumner 1-0/+5
2023-09-21Fixes #5859jarred/5859Gravatar Jarred Sumner 1-0/+42
2023-09-21PrettierGravatar Jarred Sumner 1-11/+10
2023-09-20fix(console.log): change default depth from 8 to 2 (#5839)Gravatar Jibran Kalia 2-0/+21
This make it as the same default depth in Node. Source: https://github.com/nodejs/node/blob/480ab8c3a40451d5ea459dd35b4039679b26e195/doc/api/console.md?plain=1#L285
2023-09-20fix(fetch): fix redirect in relative path location. (#5781)Gravatar Ai Hoshino 1-0/+94
* fix(fetch): fix redirect in relative path location. * fix utf-8 encoding * use server.reload * check buf size * add RedirectURLTooLong test
2023-09-20fix(run): interpret extensionless files as typescript (#5711)Gravatar dave caruso 6-2/+44
* test * gadsgsagdsa * add better err msg * r * oops * ok
2023-09-20fix(ffi) fix size limit for dlopen (#5516)Gravatar Ciro Spaciari 1-0/+286
* fix size limit * 63 * throw error * ffi.test.js * add macos tests * oops
2023-09-20feat(encoding): support BOM detection (#5550)Gravatar WingLim 1-1/+24
* fix(encoding): export `getIgnoreBOM` * feat(encoding): support ignoreBOM * fix(encoding): not replace BOM to 0xFFFD * chore: use strict equal
2023-09-20feat(node:dns): implement `dns.lookupService` (#5613)Gravatar Ai Hoshino 1-0/+66
* feat(node:dns): implement dns.lookupService Close: #4347 * fix flags * add `getSockaddr` * fix sockaddr size * flaky test
2023-09-20implement `Module.prototype._compile` (#5840)Gravatar dave caruso 1-0/+17
2023-09-20feat(runtime): implement `console._stdout` (#5842)Gravatar dave caruso 1-0/+24
* implement console._stdout * nonenum
2023-09-20Run bun fmtGravatar Ashcon Partovi 1-9/+6
2023-09-20[bun install] Add `-E` as alias of `--exact` (#5104)Gravatar Jonah Snider 1-0/+55
* [bun install] Add `-E` as alias of `--exact` * Add test for -E flag
2023-09-20add `emitDecoratorMetadata` (#5777)Gravatar Dylan Conway 4-0/+1001
* some progess * needs more tests * make tests easier to debug * get metadata for constructor arg decorators * fix some things * merge `emitDecoratorMetadata` option * remove `^` * bundler tests and get option from tsconfig earlier * remove spaces * fix tests
2023-09-20Call `Error.prepareStackTrace` on `new Error().stack` (#5802)Gravatar Jarred Sumner 2-11/+60
* Always call `Error.prepareStackTrace` * Support node:vm * Remove this * Handle more cases --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-20Fixes #5800Gravatar Jarred Sumner 1-1/+1
Fixes #5800
2023-09-20Fix path used in bunx (#5785)Gravatar Jarred Sumner 1-0/+20
* Fix path used in bunx * Add test * Use a different package --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19Fixes #5769 (#5775)Gravatar Jarred Sumner 1-0/+13
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19fix(cli): `bun pm cache rm` command not work (#4571)Gravatar WingLim 1-1/+88
* fix(cli): rm arg is in positionals[1] * chore(cli): add cache remove test * chore: remvoe unnecessary join * chore: run formatter --------- Co-authored-by: dave caruso <me@paperdave.net>
2023-09-19Get artifactory to work (#5744)Gravatar Jarred Sumner 2-20/+23
* Get artifactory to work * Cleanup url normalization a ltitle more * Clean up tests * prettier --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19Align fetch() redirect behavior with spec (#5729)Gravatar Jarred Sumner 1-0/+121
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19Fixes #3712 (#5730)Gravatar Jarred Sumner 1-0/+3
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18Encode slashes in package names in the registry manifest request (#5716)Gravatar Jarred Sumner 4-13/+16
* Encode slashes in package names in the registry manifest request Co-Authored-By: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com> * Update dummy.registry.ts * Fix tests * Add guide for Azure Artifacts * Update azure-artifacts.md * Update azure-artifacts.md * Typo --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com>
2023-09-18PrettierGravatar Jarred Sumner 2-7/+7
2023-09-18`bun run` fix missing script error on empty file (#5025)Gravatar Julian 2-0/+15
* Fix empty file not found bug * Add tests * fix test --------- Co-authored-by: Jeremy Funk <jeremy@kombo.dev> Co-authored-by: dave caruso <me@paperdave.net>
2023-09-18fix: provide empty string to 0 length process environment variables (#5679)Gravatar Liz 1-0/+10
* fix: provide empty string to len 0 process env vars For process loaded env vars, its a bug to give them the literal value '""' if the provided length is 0. * fix: add test and remove unneeded branch Removes the redundant branch for empty env vars and adds a test for the process specific case. * fix: remove empty_string_value Removes the constant in favor of using the empty values or passing the literal "". * style: format env.test.ts
2023-09-18fix(runtime/node): Allow `new Buffer.alloc()` + Upgrade WebKit (#5699)Gravatar dave caruso 1-0/+11
* make bufferconstructor a static hash table * chore: Upgrade WebKit to 4d995edbc44062b251be638818edcd88d7d14dd7 * make it constructable now * fix comment * yippee * update CI workflows
2023-09-18feat(runtime): Implement `console.Console` (#5448)Gravatar dave caruso 1-0/+66
* prototype * asdfg * It works! * okay its done now fr * self review * ok * fix * fix test --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-18Fix HTTP listen behavior being non-compliant with node (#5689)Gravatar dave caruso 1-0/+16
* Fix HTTP listen behavior being non-compliant with node * Add error code for address in use * use SystemError --------- Co-authored-by: SuperAuguste <19855629+SuperAuguste@users.noreply.github.com>
2023-09-18fix(config): support for registry url without trailing slash (#5662)Gravatar Ai Hoshino 1-4/+6
* fix(config): support for registry URLs without trailing slash Close: #4589, #5368 * Update src/bunfig.zig * Update src/bunfig.zig --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-18In `bun:sqlite`, make sure we set the number tag correctly when creating the ↵Gravatar Jarred Sumner 1-0/+7
JSValue (#5655) * Make sure we set the number tag correctly when returning values from SQLite * Add DOMJIT test * Update JSSQLStatement.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18feat(test): Implement `arrayContaining` (#5572)Gravatar WingLim 1-0/+16
* feat(test): implement `arrayContaining` * feat: early return when expectedArray is empty * feat: add test for toEqual * chore: use `JSC::isArray` * chore: use getIndex for performance * fix: use deepEqual --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-18feat(console.log): Print annonymus when class name is unknown (#5595)Gravatar Jibran Kalia 1-1/+1
This matches the functionality in Node.
2023-09-17Workaround #5604 (#5615)Gravatar Jarred Sumner 1-0/+25
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-16fix(child_process) unref next tick so exit/close event can be fired before ↵Gravatar Ciro Spaciari 2-0/+35
application exits (#5481) * unref next tick so exit callback can be called * fmt + test * oops * add ref_count * update pending * comment and fix
2023-09-16feat(encoding): TextDecoder support undefined (#5387)Gravatar WingLim 1-0/+5
* feat(encoding): TextDecoder support undefined * chore: format test file
2023-09-16fix(fetch) handle 100 continue (#5496)Gravatar Ciro Spaciari 1-0/+60
* handle 100 continue * move comment * cleanup * fmt