Jarred Sumner
967a6a2021
Fix blocking realpathSync call ( #26056 )
...
### What does this PR do?
### How did you verify your code works?
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-13 23:05:46 -08:00
pfg
0ea4ce1bb4
Synchronous concurrent test fix ( #22928 )
...
```ts
beforeEach(() => {
console.log("beforeEach");
});
afterEach(() => {
console.log("afterEach");
});
test.concurrent("test 1", () => {
console.log("start test 1");
});
test.concurrent("test 2", async () => {
console.log("start test 2");
});
test.concurrent("test 3", () => {
console.log("start test 3");
});
```
```
$> bun-before test synchronous-concurrent
beforeEach
beforeEach
beforeEach
start test 1
start test 2
start test 3
afterEach
afterEach
afterEach
$> bun-after test synchronous-concurrent
beforeEach
start test 1
afterEach
beforeEach
start test 2
afterEach
beforeEach
start test 3
afterEach
```
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-09-25 03:52:18 -07:00
Jarred Sumner
2e02d9de28
Use ReadableStream.prototype.* in tests instead of new Response(...).* ( #20937 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Alistair Smith <hi@alistair.sh >
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-14 00:47:53 -07:00
Jarred Sumner
14b439a115
Fix formatters not running in CI + delete unnecessary files ( #19433 )
2025-05-08 23:22:16 -07:00
Meghan Denny
251c2b7d06
node:fs: windows: fix integer cast truncating bits when using too large of a mode ( #17249 )
2025-02-11 00:12:28 -08:00
chloe caruso
c08f4abb6a
fix(node:fs): set allow above root ( #16814 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-01-27 16:02:15 -08:00
Jarred Sumner
f7c5b0d5fc
Fix Stat constructor, remove native code allocation for stat objects ( #16694 )
2025-01-24 04:40:00 -08:00
chloe caruso
5819fe49a7
node fs compat pr #2 ( #16422 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: Meghan Denny <meghan@bun.sh >
Co-authored-by: dylan-conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-01-21 10:28:35 -08:00
Jarred Sumner
cfbb62df16
Implement fs.statfs, fs.statfsSync fs.promises.statfs ( #16519 )
2025-01-20 00:39:18 -08:00
Jarred Sumner
9579e4292b
Fix fs.mkdir recursive regression from Bun v1.1.44 ( #16464 )
2025-01-17 04:12:17 -08:00
chloe caruso
834ad11d48
get node:fs tests passing part 1 ( #16270 )
2025-01-14 20:53:02 -08:00
Meghan Denny
e1cfea4925
node: fix the rest of test-process ( #16026 )
2025-01-06 14:30:36 -08:00
Ashcon Partovi
e8b85cff40
ci: Retry and detect flaky tests ( #15798 )
2024-12-16 17:04:33 -08:00
Meghan Denny
53318c8b13
ci: run re-enable node tests on all platforms ( #15572 )
2024-12-09 19:08:30 -08:00
pfg
4c8cbecb08
Support flag parameter in readFileSync ( #15595 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-12-05 13:41:44 -08:00
dave caruso
32ddf343ee
bake: csr, streaming ssr, serve integration, safer jsvalue functions, &more ( #14900 )
...
Co-authored-by: paperdave <paperdave@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-11-13 18:19:12 -08:00
Jarred Sumner
ce2afac827
Align "encoding" option in node fs with node ( #14937 )
2024-11-01 18:16:04 -07:00
Dylan Conway
e448c4cc3b
fs.mkdir empty string bugfix (#14510 )
2024-10-16 18:55:49 -07:00
Meghan Denny
1ce2d0e9f5
fix fs-read-empty-buffer.test.js ( #14316 )
2024-10-07 19:03:30 -07:00
Meghan Denny
39342e34b1
node: define missing constants ( #14211 )
2024-10-02 14:35:16 -07:00
Dylan Conway
5af782344f
fix(watch): use case insensitive path comparison ( #13909 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-14 01:41:33 -04:00
Jarred Sumner
ed8e6115bb
Fix using decimal numbers for file descriptors ( #13881 )
2024-09-11 15:52:53 -07:00
Jarred Sumner
cd6785771e
run prettier and add back format action ( #13722 )
2024-09-03 21:32:52 -07:00
Jarred Sumner
ac8f9052a2
Deflake fs.test.ts ( #13538 )
2024-08-25 21:43:16 -07:00
Jarred Sumner
b005ef43d4
Deflake fs.test.ts
2024-08-23 22:55:30 -07:00
Meghan Denny
d4237b0757
node:fs: mode+flags message cleanup ( #13332 )
2024-08-15 23:19:25 -07:00
Meghan Denny
715ff7f323
node:fs: add additional error handling for flags and mode ( #13321 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-08-15 13:13:11 -07:00
Meghan Denny
c63c55cbb1
node:fs: fix assertion when chown is passed non-numbers ( #13113 )
2024-08-07 02:29:50 -07:00
Jarred Sumner
f1151a84ad
On Windows, fix fs.writeFile(1, fs.writeFile(2, fs.writeFile(\\nul ( #12410 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2024-07-10 19:49:36 -07:00
Ashcon Partovi
d105b048b1
Use Buildkite for CI ( #11477 )
2024-06-27 14:56:07 -07:00
Meghan Denny
ba5dd63eb6
allow node:fs.promises.{read,write,append}File to accept a FileHandle ( #11800 )
2024-06-12 18:26:15 -07:00
Meghan Denny
c456622161
node:fs/promises.cp should make path if dest does not exist ( #11433 )
2024-05-30 01:15:20 -07:00
Jarred Sumner
0905e43049
Test gardening ( #11285 )
2024-05-23 19:54:36 -07:00
Meghan Denny
396dc78522
node:fs: add Dirent.path and .parentPath fields ( #11135 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-05-21 11:24:05 -07:00
Meghan Denny
4efe026b5f
test: unify how all files create a temp directory ( #11057 )
...
Co-authored-by: nektro <nektro@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-14 20:19:35 -07:00
Dylan Conway
2d5cc719d2
fix coercion to double ( #11056 )
2024-05-13 20:07:00 -07:00
Meghan Denny
8528e9c670
make node:fs.ReadableStream and node:stream.NativeReadable constructor functions ( #10943 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-09 17:18:43 -07:00
Georgijs
d4db29c164
Fix fd offset handling in ReadStream ( #10883 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-07 16:05:48 -07:00
Meghan Denny
23e4f609bf
Revert "node:fs.readdir: should not fail even if folder contains self-referential symlinks" ( #10750 )
2024-05-01 14:59:01 -07:00
Meghan Denny
bd632464a0
node:fs.readdir: should not fail even if folder contains self-referential symlinks ( #10679 )
2024-05-01 13:25:47 -07:00
Meghan Denny
74c6bd4197
node:fs.fdatasync: include fd in Error when thrown ( #10678 )
2024-04-29 22:35:09 -07:00
Meghan Denny
b257a30977
node:fs: fix arg parsing of readSync ( #10527 )
2024-04-25 20:49:17 -07:00
Meghan Denny
ff624147ad
existsSync should never throw ENAMETOOLONG ( #10446 )
...
* existsSync should never throw ENAMETOOLONG
* undo PathLike change and use better guard
* Apply formatting changes
* await promise
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-04-23 15:33:37 -07:00
Georgijs
fdcc844027
fix path resolution for writeFile in nodefs ( #10179 )
...
* fix path resolution for writeFile in nodefs
* add test
* [autofix.ci] apply automated fixes
* use force copy
* fix build
* fix test on windows
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-15 05:02:09 -07:00
Georgijs
472bd6c7de
Allow fs.close with no callback ( #10229 )
...
* allow fs.close to only take one argument
* add test
* fix tests on windows
2024-04-12 17:11:58 -07:00
Georgijs
22d6227a3a
fix wrong truncation on fs.writeFileSync with fd argument ( #10225 )
...
* fix wrong truncate
* close fd in test
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-12 13:02:24 -07:00
Jarred Sumner
a9ad303fe2
Add test for fs.writev & fs.readv ( #9632 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-27 09:00:39 -07:00
Jarred Sumner
fa145b2218
Implement fs.openAsBlob ( #9628 )
...
* Implement `fs.openAsBlob`
* Use a function
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-25 17:21:11 -07:00
dave caruso
73a55cf075
windows: make more windows tests pass ( #9370 )
...
* run-eval.test.ts
* transpiler-cache.test.ts
* node net
* some open things
* a
* a
* yikes
* incredible
* run it back
* a
* this code is what i like to call, incorrect
* ok its all worng
* remove an assertion that is wrong again
* update test things and rebase
* performance test
* mark filesink with mkfifo as todo. see #8166
* hehe
* not done
* awa
* fs test pass
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-22 23:40:45 -07:00
Jarred Sumner
76ced7c6ed
WIP Make process.stdout sync on windows ( #9398 )
...
* Make some things sync on windows
* WIP
* WIP
* remove uses to uv_default_loop
* remove a compiler warning on windows
* edfghjk
* Windows build fixes
* Fixup
* bundows
* Add quotes
* Fix --cwd arg on Windows
* comment
* move this up
* Fix some tests
* `mv` tests pass
* spawn.test passes again
* Allow .sh file extension for Windows
* Unmark failing tests
* env test pass
* windows
* Fix some tests
* Update ProcessBindingTTYWrap.cpp
* Update CMakeLists.txt
* Set tmpdir
* Make it 5s on windows
* Fixup
* Fixup
* Update ProcessBindingTTYWrap.cpp
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: dave caruso <me@paperdave.net >
2024-03-18 19:35:34 -07:00