Commit Graph

35 Commits

Author SHA1 Message Date
Yoshiya Hinosawa
93e0cd64cc
fix(fs): improve the docs and error message of ensureSymlink(Sync) (#6198)
Some checks are pending
ci / test (canary, macOS-latest) (push) Waiting to run
ci / test (canary, ubuntu-latest) (push) Waiting to run
ci / test (canary, windows-latest) (push) Waiting to run
ci / test (v1.x, macOS-latest) (push) Waiting to run
ci / test (v1.x, ubuntu-latest) (push) Waiting to run
ci / test (v1.x, windows-latest) (push) Waiting to run
ci / test (v2.x, macOS-latest) (push) Waiting to run
ci / test (v2.x, ubuntu-latest) (push) Waiting to run
ci / test (v2.x, windows-latest) (push) Waiting to run
ci / test-node (latest, ubuntu-latest) (push) Waiting to run
ci / lint (ubuntu-latest) (push) Waiting to run
ci / lint (windows-latest) (push) Waiting to run
ci / wasm (crypto/_wasm) (push) Waiting to run
2024-11-21 23:44:00 +09:00
Asher Gomez
43102325b7
test: use Deno.errors.NotCapable where appropriate (#5935)
* test: use `Deno.errors.NotCapable` where appropriate

* copyright headers

* fixes

* fixes

* fixes
2024-09-11 19:17:27 +09:00
Yoshiya Hinosawa
b75d42a329
test(fs): improve ensureSymlink() test (#5087) 2024-06-20 12:23:08 +09:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
ryota2357
1e0764dc23
fix(fs/ensure_symlink): check symlink is pointing the given target (#4371) 2024-02-28 11:50:33 +09:00
Lino Le Van
c46143f0ac
chore: update copyright year (#4046)
* chore: update copyright year

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 08:11:32 +11:00
Jacob Avery
bc540fbf07
refactor(fs): correct test names (#3835)
* chore(fs): Update fs test descriptions

* fixes "throws" to "rejects" when appropriate

* Update fs/eol_test.ts

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-11-23 17:59:59 +11:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
locriacyber
69fa1e956c
fix(fs/ensure_symlink): lstat relative symlink properly (#3216) 2023-03-01 06:24:46 +09:00
ayame113
b4239898d6
chore: update copyright header (#3082) 2023-01-03 19:47:44 +09:00
Asher Gomez
8ea6f76d60
fix(fs): ensureSymlink works when symlink already exists (#2642) 2022-09-14 19:44:51 +09:00
Asher Gomez
3b9fb39ddd
chore: remove void and Promise<void> return types (#2550) 2022-08-24 10:21:57 +09:00
Yoshiya Hinosawa
808fe203e0
chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
Yasser A.Idrissi
eb69dbd380
feat(testing): add assertRejects, deprecate assertThrowsSync (#1101) 2021-08-09 14:59:52 +09:00
William Perron
69f3d67cb2
chore: remove Promise<void> return type annotation (#819)
There's a couple of instances where `Promise<void>` is still there,
those are the exceptions, for example functions that explicitely return
a `Promise` object or functions that return the promise from another
function call without any `await` statement.

used this one-liner to automatically remove everything:

```bash
grep -rli 'promise<void>' | xargs sed -i 's/: Promise<void>//g
```
2021-04-05 07:49:05 -04:00
Yusuke Tanaka
d8a589ac80 chore: update copyright to 2021 (denoland/deno#9092) 2021-02-01 10:46:59 +00:00
Casper Beyer
ff1382572e test(fs): make tests runnable from any directory (denoland/deno#7388) 2021-02-01 10:46:58 +00:00
David Sherret
1425960509 Use dprint for internal formatting (denoland/deno#6682) 2021-02-01 10:46:58 +00:00
Ali Hasani
0362de74ca Implement Deno.symlink() for windows (denoland/deno#5533) 2021-02-01 10:46:57 +00:00
Ryan Dahl
bdac502f84 BREAKING: Use LLVM target triple for Deno.build (denoland/deno#4948)
Deno.build.os values have changed to correspond to standard LLVM target triples
"win" -> "windows"
"mac" -> "darwin"
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
4facff44f2 BREAKING: remove overload of Deno.test() (denoland/deno#4951)
This commit removes overload of Deno.test() that accepted named
function.
2021-02-01 10:46:57 +00:00
Nayeem Rahman
b10a0edb43 refactor(cli/js/ops/fs): Improve readdir() and FileInfo interfaces (denoland/deno#4763) 2021-02-01 10:46:57 +00:00
Kitson Kelly
7914eae5f0 Update to Prettier 2 and use ES Private Fields (denoland/deno#4498) 2021-02-01 10:46:57 +00:00
dubiousjim
4d1a39493e use prebuilt "not implemented" error (denoland/deno#4442) 2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
a19e660a30 feat: Deno.test() sanitizes ops and resources (denoland/deno#4399)
This PR brings assertOps and assertResources sanitizers to Deno.test() API.

assertOps checks that test doesn't leak async ops, ie. there are no unresolved
promises originating from Deno APIs. Enabled by default, can be disabled using 
Deno.TestDefinition.disableOpSanitizer.

assertResources checks that test doesn't leak resources, ie. all resources used
in test are closed. For example; if a file is opened during a test case it must be
explicitly closed before test case finishes. It's most useful for asynchronous
generators. Enabled by default, can be disabled using 
Deno.TestDefinition.disableResourceSanitizer.

We've used those sanitizers in internal runtime tests and it proved very useful in
surfacing incorrect tests which resulted in interference between the tests.

All tests have been sanitized.

Closes denoland/deno#4208
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
82a523639a refactor: rewrite tests in to use Deno.test (denoland/deno#3930) 2021-02-01 10:46:57 +00:00
Ry Dahl
8c250d5668 fix: Deno.mkdir should conform to style guide (denoland/deno#3617) 2021-02-01 10:46:56 +00:00
Ry Dahl
3a9eb92372 Happy new year! (denoland/deno#3578) 2021-02-01 10:46:56 +00:00
Kitson Kelly
1c5db631f7 Update to TypeScript 3.7 (denoland/deno#3275)
and update to prettier 1.19

Also, update `assert()` and remove not null assertions where possibly
in `cli`.

Closes denoland/deno#3273
2021-02-01 10:46:56 +00:00
Nayeem Rahman
5b2aec7a62 std: Move fs/path to the top-level (denoland/deno#3100) 2021-02-01 10:46:56 +00:00
Ryan Dahl
d491d2e747 Run deno_std tests in github actions 2021-02-01 10:46:56 +00:00
Axetroy
06958a4ada bump prettier to 1.18.2 (#592) 2019-09-11 23:31:23 -04:00
Yoshiya Hinosawa
0e6f163ac6 fix: replace Deno.platform usages (#590) 2019-09-09 13:58:36 -04:00
Vincent LE GOFF
4543b563a9 Eslint fixes (#356)
Make warnings fail
2019-04-24 07:41:22 -04:00
Axetroy
8d1b01cfcf feat: add ensureSymlink/ensureSymlinkSync for fs modules (#268) 2019-04-21 15:23:44 -04:00