Commit Graph

340 Commits

Author SHA1 Message Date
Yusuke Tanaka
43f2a2dffd
chore: support expect-error directive in code snippets evaluator (#5688)
This commit adds support for `expect-error` directive in code snippets
evaluator, which allows example snippets to have ones that are expected to fail
either at compile time or runtime.
2024-08-16 02:58:01 -07:00
Yoshiya Hinosawa
d32fcaa662
docs(testing): mention default serializer (#5590) 2024-07-31 16:45:22 +09:00
Asher Gomez
20577daefe
chore(testing): release testing@1.0.0 (#5218)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-07-31 16:55:45 +10:00
Asher Gomez
7fd14ba8d4
fix(testing): correct stub() error message (#5575) 2024-07-30 12:11:41 +09:00
Asher Gomez
33e17d579d
refactor(testing): improve error messages in mock module (part 2) (#5569) 2024-07-29 21:30:55 +10:00
Asher Gomez
7eed8d0e04
BREAKING(testing): replace TimeError exception in favor of built-in error classes in some cases (#5550)
* BREAKING(testing): remove `TimeError` in favor of built-in error classes

* work

* refactor: use `Error` instead of `TypeError`

* work

* fix

* work

* work

* fix

* fix
2024-07-29 14:48:44 +10:00
denobot
fb950fa0f3
chore: release 2024.07.26 (#5554)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-26 19:45:22 +09:00
Asher Gomez
1eb559fe9c
refactor(testing): improve error messages in mock module (#5549)
* refactor(testing): improve error messages in `mock` module

* work
2024-07-26 12:24:12 +09:00
Asher Gomez
3f318935c9
refactor(testing): improve FakeTime error messaging (#5533)
* refactor(time): improve `FakeTime` error messaging

* fix

* fix
2024-07-24 15:48:23 +09:00
Asher Gomez
82f49dc91d
chore(testing): remove redundant constructor examples (#5515) 2024-07-23 12:07:53 +09:00
Milly
55297e90a8
fix(testing): FakeTime fakes AbortSignal.timeout (#5500)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-22 13:07:48 +09:00
denobot
f54eab4355
chore: release 2024.07.12 (#5431)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-12 19:45:19 +09:00
Yoshiya Hinosawa
e29f946319
test(testing): fix flakiness of snapshot test (#5414) 2024-07-11 19:25:08 +09:00
Asher Gomez
ad1dad6ce6
docs(cli,csv,datetime,fmt,fs,http,ini,semver,testing): assert optional properties on types/interfaces have @default tag (#4933)
* docs: assert optional properties on types/interfaces have `@default` tag

* work

* work

* work

* work

* work

* work

* fix

* fix

* Update fs/expand_glob.ts

* cleanups

* cleanups

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-07-11 09:21:37 +00:00
Yoshiya Hinosawa
faa633bd12
fix(testing): throw error when async func is passed to describe (#5385) 2024-07-11 15:28:27 +09:00
denobot
dc14633394
chore: release 2024.07.09 (#5363)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-09 15:13:21 +09:00
Yoshiya Hinosawa
6eeddb32d7
fix(testing): cause type error for async function as describe body (#5355) 2024-07-09 12:13:07 +09:00
Yoshiya Hinosawa
0d668fa01e
fix(testing): escape CR in snapshot files (#5352)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-08 19:33:33 +09:00
Asher Gomez
fc2975b21f
chore: temporarily disable canary (#5290)
* chore: temporarily disable canary

* fix

* fix

* more fixing

* fix

* fixing...
2024-07-04 13:47:53 +09:00
denobot
940568c62d
chore: release 2024.07.02 (#5254)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-02 20:43:42 +09:00
Asher Gomez
375e914050
refactor(expect,testing): update @std/assert imports (#5242) 2024-07-02 14:07:46 +10:00
Ben Heidemann
d6c31707d8
fix(testing): throw error eagerly when insufficient permissions are granted to write to snapshot file in update mode (#5201) 2024-07-01 11:14:37 +09:00
Asher Gomez
d102a10235
refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199)
* refactor: import from `@std/assert`

* update
2024-06-30 08:30:10 +00:00
Asher Gomez
1adff2da9b
chore(testing): release testing@1.0.0-rc.1 (#5142)
* chore(testing): release `testing@1.0.0-rc.1`

* update

* update
2024-06-26 07:36:35 +00:00
Yoshiya Hinosawa
06d43901a8
fix(testing): correctly throw in constructor with spy() (#5139) 2024-06-26 16:32:08 +09:00
Asher Gomez
040e666033
docs(testing): add module docs (#5147)
* docs(testing): add module docs

* work
2024-06-26 16:26:28 +10:00
Asher Gomez
3db13cb886
refactor(testing): remove @std/fmt/colors dependency from snapshot module (#5145) 2024-06-26 15:23:17 +10:00
Yoshiya Hinosawa
df8cebcd74
test(testing): improve bdd testing (#5136) 2024-06-25 19:26:12 +09:00
Yoshiya Hinosawa
876c20ffb9
refactor(testing): remove dead code and improve test of testing/mock.ts (#5137) 2024-06-25 18:32:50 +09:00
Yoshiya Hinosawa
40bf2a57b4
test(testing): improve FakeTime testing (#5123) 2024-06-25 15:51:24 +09:00
Asher Gomez
ed86fa9414
BREAKING(testing): remove deprecated asserts module (#5099) 2024-06-25 16:18:30 +10:00
Yoshiya Hinosawa
3204a708a5
BREAKING(testing): disable multiple FakeTime creations (#5130) 2024-06-25 14:15:25 +09:00
Yoshiya Hinosawa
61a39ce146
fix(testing): function call of Date constructor is not correctly faked (#5122) 2024-06-25 08:35:53 +09:00
denobot
7d1d9cc34a
chore: release 2024.06.21 (#5107)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-21 19:15:49 +09:00
Asher Gomez
b5f9e3446c
refactor(testing): remove FakeTime.start setter (#5050)
* BREAKING(testing): remove `FakeTime.start` setter

* note

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-06-18 14:36:51 +10:00
denobot
cea0a14578
chore: release 2024.06.17 (#5062)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-17 18:53:28 +09:00
Asher Gomez
935d665713
refactor(testing): remove use of public keyword (#5051) 2024-06-17 15:11:31 +12: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
denobot
0ea4868542
chore: release 2024.06.06 (#4984)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-06 20:26:57 +09:00
Asher Gomez
c5ad9d48dc
docs(cli,encoding,fmt,jsonc,path,semver,testing,text,toml,url): remove "This module is browser compatible" note (#4945) 2024-06-04 13:21:54 +10:00
denobot
b9374d3715
chore: release 2024.06.03 (#4935)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-03 15:44:03 +09:00
Asher Gomez
8b24cc7a40
BREAKING(assert,testing): remove formatter option from assertEquals() (#4893) 2024-06-03 13:37:07 +10:00
Yoshiya Hinosawa
44bc90065b
refactor(testing): do not use assertEquals in snapshot.ts (#4930) 2024-06-02 19:28:31 +09:00
David Sherret
4a7f38339e
chore(expect): fix future no-slow-type lint errors with expando properties (#4711)
* chore: fix future fast check errors with expando properties

* spelling

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-05-13 08:29:05 +10:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
Michael Herzner
f5f9ca9207
test(crypto): improve test coverage (#4620)
* test(crypto): improve test coverage

* chore: implement review remarks

* fix types incompatible with @types/node

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-04-23 08:37:50 +10:00
Asher Gomez
3f9d4a8494
chore: simplify deprecation notice check (#4577) 2024-04-17 15:36:50 +09:00
Asher Gomez
bfefdd713d
test(testing): correct test names (#4585) 2024-04-15 16:39:17 +10:00
Asher Gomez
44660eaf1f
test(testing): cleanup bdd tests (#4565) 2024-04-10 20:56:00 +09:00
Marvin Hagemeister
6cc097b621
feat(testing): add after, before, test aliases (#4541)
* feat(testing): add `after`, `before`, `test` aliases

* fix: jsdoc links
2024-04-02 12:53:27 +02:00