Asher Gomez
040e666033
docs(testing): add module docs ( #5147 )
...
* docs(testing): add module docs
* work
2024-06-26 16:26:28 +10:00
Yoshiya Hinosawa
635e062330
docs(testing): improve the docs of @std/testing
( #5033 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-06-17 11:31:31 +09:00
Leo Kettmeir
aba5017d43
docs: reorganize docs ( #2658 )
2022-11-25 12:40:23 +01:00
Asher Gomez
40d0466e46
chore(testing/bench): remove deprecated APIs ( #2714 )
2022-09-29 11:27:10 -04:00
Asher Gomez
30f771dd17
feat(testing/asserts): add assertNotInstanceOf ( #2530 )
2022-08-18 16:29:57 +09:00
Benjamin Fischer
66671c4495
fix(testing): add support for PromiseLike
in assertRejects
( #2443 )
...
Fixes #2442
2022-07-17 09:01:14 +10:00
Yoshiya Hinosawa
6728c574c1
docs(testing): add note about powershell usage ( #2414 )
2022-07-04 15:37:35 +09:00
Ben Heidemann
583554de46
feat: add createAssertSnapshot ( #2403 )
2022-07-02 18:24:42 +09:00
Yoshiya Hinosawa
f44696c5ef
docs(testing): improve docs of assertThrows and assertRejects ( #2282 )
2022-05-29 21:05:52 +09:00
Mark Ladyshau
662f27ce84
feat(testing/asserts): return error from assertRejects
and assertThrows
( #2226 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-05-25 17:51:42 +09:00
Eliaz Bobadilla
4a44ee3869
docs(testing): document assertFalse in README ( #2175 )
2022-05-03 22:11:12 +09:00
Yongwook Choi
7b44ec31cd
feat(testing): Implement "assertSnapshot" ( #2039 )
...
This commits adds "assertSnapshot" API as part of "testing" module.
This API is modelled after Jest's API and can be used to compare
test results with previously saved result in a file.
Co-authored-by: Ben Heidemann <ben@heidemann.co.uk>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-04-20 13:46:21 +02:00
Kyle June
403f226a20
feat(testing): add utility for faking time ( #2069 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-04-14 15:29:17 +09:00
Yoshiya Hinosawa
e224f047ae
BREAKING(testing/bench): deprecate testing/bench module ( #2104 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-04-13 21:58:50 +09:00
Kyle June
5f764b9499
feat(testing): add behavior-driven development ( #2067 )
2022-04-08 14:01:46 +09:00
Jesper van den Ende
c347251139
docs(testing): Fix typo ( #2082 )
2022-04-05 15:36:41 +02:00
Kyle June
7213d527ec
feat(testing): add mocking utilities ( #2048 )
2022-03-29 21:51:36 +09:00
Jesper van den Ende
8e01ec6cb7
feat(testing): add assertInstanceOf
( #2028 )
2022-03-16 14:38:30 +09:00
Simon Lecoq
3284461e9d
feat(testing): add assertAlmostEquals
( #1906 )
2022-02-19 19:54:58 +09:00
Bartek Iwańczuk
dcad2062d5
[BREAKING] Remove assertThrowsAsync from 'testing/' ( #1646 )
2021-12-13 14:00:20 +01:00
Nayeem Rahman
159e2aeffc
feat(testing/asserts): add assertThrows() overload to receive error ( #1219 )
2021-09-16 00:35:21 +09:00
Yoshiya Hinosawa
abec657c67
docs(testing): document assertRejects in README ( #1198 )
2021-09-07 15:04:00 +09:00
Ryan Dahl
455077a905
fix: type check examples in README files ( #1121 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-08-11 11:28:10 +02:00
Simon Lecoq
5606a10728
fix(testing): change assertThrows
and assertThrowsAsync
return type to void
and Promise<void>
( #1052 )
2021-07-28 14:54:58 +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
Tim Reichen
55a7adb58e
rename(testing): rename assert*Contains to assert*Includes ( denoland/deno#7951 )
...
This commit renames two assertion functions to better align with JS API:
- assertStringContains -> assertStringIncludes
- assertArrayContains -> assertArrayIncludes
2021-02-01 10:46:58 +00:00
Simon Lecoq
75e51cd223
feat(testing): Add support for object assertion against object subset ( denoland/deno#8001 )
...
This commit add supports for a new assertion function
"assertObjectMatch" which allows to test an actual object
against an expected object subset (i.e. inclusivity, not equality).
2021-02-01 10:46:58 +00:00
tokiedokie
8567b960f8
docs: version all imports in README ( denoland/deno#7442 )
...
Use $STD_VERSION in README files to automatically
display proper version.
2021-02-01 10:46:58 +00:00
Trivikram Kamat
eb1c38cfbf
docs: end sentences with a period in markdown ( denoland/deno#7813 )
2021-02-01 10:46:58 +00:00
David Sherret
99e0dca320
feat(fmt): Sort named import and export specifiers ( denoland/deno#7711 )
2021-02-01 10:46:58 +00:00
xcatliu
2f39e2eb24
feat(testing): add assertNotMatch ( denoland/deno#6775 )
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
Vladimir Iakovlev
ac76e3c085
Update assertions names in testing README ( denoland/deno#6318 )
2021-02-01 10:46:58 +00:00
Szalay Kristóf
6908dc02f4
fix(testing/bench): Make progress callback async ( denoland/deno#6175 )
2021-02-01 10:46:57 +00:00
Szalay Kristóf
b70486f8bd
docs: benchmarking ( denoland/deno#6075 )
2021-02-01 10:46:57 +00:00
Szalay Kristóf
95a10d7abf
Return results in benchmark promise ( denoland/deno#5842 )
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
e7c907bc7b
refactor(cli/js/testing): Reduce testing interfaces ( denoland/deno#4451 )
...
* Reduce "testing" interfaces
* Use a callback instead of a generator for Deno.runTests()
* Default RunTestsOptions::reportToConsole to true
* Compose TestMessage into a single interface
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
Bartek Iwańczuk
b9f5505ebe
update references to testing/mod.ts in manual ( denoland/deno#3973 )
2021-02-01 10:46:57 +00:00
Nayeem Rahman
90bd2ad881
feat: Add missing mod.ts files in std ( denoland/deno#3509 )
...
archive/tar.ts:
- Remove FileReader.
- Remove FileWriter.
encoding/csv.ts:
- ExtendedParseOptions -> ParseOptions
- HeaderOption -> HeaderOptions
- ParseOptions -> ReadOptions
- readAll() -> readMatrix()
encoding/yaml.ts:
- DumpOptions -> StringifyOptions
fmt/colors.ts:
- getEnabled() -> getColorEnabled()
- setEnabled() -> setColorEnabled()
testing/mod.ts:
- Re-export sibling modules.
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
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
Rong Sen Ng
ba4210cdb9
typo
2019-06-24 06:08:14 -07:00
Vincent LE GOFF
4543b563a9
Eslint fixes ( #356 )
...
Make warnings fail
2019-04-24 07:41:22 -04:00
迷渡
7f4dae109e
fix usage code syntax error ( #318 )
2019-04-05 14:19:13 +03:00
Vincent LE GOFF
d9e8953110
testing: turn off exitOnFail by default ( #307 )
2019-03-26 11:29:12 -04:00
Axetroy
59adafe867
fix: wrong usage of assertThrowsAsync which without await keyword ( #295 )
2019-03-19 13:22:33 -04:00
Vincent LE GOFF
b699fa67be
Documentation clean up ( #288 )
2019-03-18 11:08:01 -04:00