Commit Graph

286 Commits

Author SHA1 Message Date
Yoshiya Hinosawa
0ce9c2bf7e
experiment 2024-01-31 18:10:15 +09:00
Asher Gomez
805b926032
fix: add --no-lock to spawned process args in tests (#4168) 2024-01-12 13:38:41 +09:00
Asher Gomez
cbea77eba0
docs(testing): fix assertion deprecation notices (#4122) 2024-01-08 13:17:03 +11:00
Simon Holloway
0858ff8287
refactor(testing): prepare for noUncheckedIndexedAccess (#4084)
* refactor(testing): prepare for noUncheckedIndexedAccess

* tweaks

* fix(testing): returnsArg throws when no arg at index

* refactor(testing): sessions to use .at(-1) to get last item

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* non-null after check

* swap non-null assertions for as const

* proper error message

* more as const in the mock_test file

* fix tests for new behaviour

* tweak

* revert returnsArg handling back to `| undefined`

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-05 09:26:55 +11: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
Asher Gomez
756f87eea7
refactor(testing): minor cleanups (#3963) 2023-12-18 19:04:31 +11:00
Simon Holloway
f712403cb1
feat(testing): enable the using keyword on FakeTime() (#3961)
* feat(testing): enable the "using" keyword on FakeTime

* chore(testing): update all tests with using FakeTime

* chore(testing): formatting fix
2023-12-15 07:47:50 +11:00
Asher Gomez
733b60e4b2
chore(fmt): replace stripColor() use with stripAnsiCode() (#3902) 2023-12-06 17:58:42 +11:00
Asher Gomez
69d1b0d2f1
chore(testing): remove examples (#3833) 2023-11-22 18:39:15 +11:00
Asher Gomez
7d5344d775
docs: improve deprecation notices (#3804) 2023-11-16 05:33:11 +11:00
Asher Gomez
255a3765d3
feat: std/data_structures (#3734) 2023-11-15 21:17:44 +11:00
Chiezo
21f9edc524
feat(testing/mock): enable spy to accept a class constructor (#3766) 2023-11-06 18:03:39 +09:00
Asher Gomez
c4236a34c7
refactor: move unstable std/collections files (#3700) 2023-10-18 10:24:46 +09:00
Yoshiya Hinosawa
c54ab5f956
test(testing): use assert/mod.ts instead of testing/asserts.ts (#3652) 2023-09-20 13:57:44 +09:00
Milly
d48fe6101b
fix(testing/time): fix FakeTime.next to return false if all timers are cleared (#3638) 2023-09-14 19:16:59 +09:00
Yoshiya Hinosawa
8229b6f248
BREAKING(collections): move RedBlackTree, BinarySearchTree, and BinaryHeap to 'unstable' subdir (#3628) 2023-09-12 16:26:57 +09:00
Hirotaka Tagawa / wafuwafu13
51cfcb65d8
fix(testing/snapshot): distinguish between singular and plural forms (#3625) 2023-09-06 11:02:45 +09:00
Lino Le Van
2b5d71224f
refactor: cleanup usage of double equals (#3566)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-08-25 18:04:43 +09:00
Yoshiya Hinosawa
ee6856c2ed
refactor: move _util/diff to assert/_diff (#3563) 2023-08-23 16:45:32 +09:00
Milly
bca446e181
fix(testing/time): fix FakeTime.restoreFor accuracy for sync callbacks (#3531) 2023-08-14 18:33:35 +09:00
ud2
159060b15c
perf: repoint internal imports to single-export files (#3537) 2023-08-14 16:08:42 +09:00
Yoshiya Hinosawa
5be01a0931
BREAKING(testing/snapshot): fix regression of serialization of long strings (#3507) 2023-07-29 18:30:50 +09:00
Hirotaka Tagawa / wafuwafu13
428154a3dd
BREAKING(testing/snapshot): change tab char serialization (#3447)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-07-29 18:24:09 +09:00
Dan Rose
bafcd2429d
docs(testing): fix typo in std/testing/asserts.ts deprecation message (#3497) 2023-07-23 17:37:19 +09:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
Jacob Avery
4026c52a01
fix(testing/asserts): handle primitive/null values better in assertObjectMatch (#3468) 2023-06-30 17:38:26 +09:00
Yoshiya Hinosawa
3e2bdffbbf
chore: fix lint errors (#3470) 2023-06-28 17:06:55 +09:00
Martin Fischer
a5b1d80736
chore: fix typos (#3458)
The typos were found with the typos[1] spell checker.  That spell
checker will be incorporated into the CI in a followup PR.

[1]: https://github.com/crate-ci/typos
2023-06-22 01:27:37 +09:00
Luca Casonato
7e67e2668f
fix(testing/time): use real Date in FakeTime (#3414) 2023-06-10 19:56:34 +09:00
Hirotaka Tagawa / wafuwafu13
d3e48570ab
feat(testing): report the number of removed snapshots (#3435) 2023-06-10 19:02:09 +09:00
Jean-David Daviet
1ec581bf7e
docs(testing): update fast-check integer method (#3428) 2023-06-07 21:37:55 +09:00
Hirotaka Tagawa / wafuwafu13
d42db5ba90
refactor(testing): remove unnecessary context processing in snapshot teardown (#3422) 2023-06-07 14:05:47 +09:00
Yoshiya Hinosawa
400ba3a3dd
chore: update assertions following Deno.inspect change (#3345) 2023-05-01 08:28:36 +09:00
Marvin Hagemeister
c224ce4753
feat(testing): add .skip alias to bdd test API (#3300) 2023-04-13 12:30:04 +09:00
Yuki Tanaka
18b171468b
chore(testing): update __snapshots__/snapshot_test.ts.snap (#3271) 2023-03-21 21:35:48 +09:00
Miroslav Bajtoš
0d4bd3cb2e
feat(testing/asserts): include msg in assertion errors (#3253) 2023-03-20 15:23:09 +09:00
Geert-Jan Zwiers
69556068c7
chore: remove powershell note in snapshot docs (#3205) 2023-02-17 09:54:40 -05:00
ayame113
ba0b6317de
test: update test cases according to swc updates (#3188) 2023-02-12 12:12:12 +09:00
denobot
1756b160fa
0.174.0 (#3135)
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-25 23:25:19 +01:00
ayame113
b4239898d6
chore: update copyright header (#3082) 2023-01-03 19:47:44 +09:00
Kamil Ogórek
4db14f6ccf
fix(testing): do not mutate tokens when creating details (#3049) 2022-12-25 20:44:51 +09:00
Asher Gomez
c78061eef3
refactor: replace String.prototype.substr() with String.prototype.slice() (#2993) 2022-12-12 15:21:59 +09:00
Asher Gomez
6c2e01e6b8
refactor: replace use of Deno.spawnChild and Deno.run with Deno.Command (#2912)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-11-30 14:12:34 +09:00
Lino Le Van
34d5f7a032
feat(testing): add conditional type check utils (#2864)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-11-28 21:05:51 +09:00
Leo Kettmeir
aba5017d43
docs: reorganize docs (#2658) 2022-11-25 12:40:23 +01:00
Asher Gomez
b72d3eb42a
refactor: replace Deno.spawn with Deno.Command (#2886) 2022-11-15 15:00:59 +09:00
ayame113
e6189c08e9
docs: Using absolute paths in jsdoc import statements (#2762) 2022-10-10 10:05:56 -04:00
Asher Gomez
bddda3c473
chore: remove deprecated APIs across collections, streams, textproto and uuid (#2720) 2022-09-30 16:27:11 +09:00
Asher Gomez
40d0466e46
chore(testing/bench): remove deprecated APIs (#2714) 2022-09-29 11:27:10 -04:00
Asher Gomez
b9f9caa7be
chore(collections): remove deprecated APIs (#2711) 2022-09-29 11:24:28 -04:00