Commit Graph

357 Commits

Author SHA1 Message Date
denobot
c6193ac887
chore: release 2024.11.13 (#6182)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-11-13 19:36:14 +09:00
Doctor
4ec1800b49
docs(testing): fix typo in snapshot.ts (#6171) 2024-11-05 10:16:19 +09:00
denobot
df6f32c6bc
chore: release 2024.11.01 (#6167)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-11-01 19:33:15 +09:00
IgorM867
6cc4f9fc44
feat(testing/unstable): support for stubbing properties (#6128)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-10-31 20:54:32 +09:00
KnorpelSenf
b6ab0f4f52
feat(testing/unstable): add type test for mutual assignability (#6154) 2024-10-29 20:07:35 +09:00
eryue0220
ed79df4696
fix(expect,internal,testing): support expect.assertions (#6032)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-10-25 17:29:40 +09:00
denobot
eeb3c9b151
chore: release 2024.09.24 (#6043)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-09-24 19:25:09 +09:00
Asher Gomez
0b2497f16e
fix: update codebase to work with Deno RC (#6018)
* fix: update codebase to work with Deno RC

* work

* fix

* fix

* fix

* fixes

* work

* update

* fixes

* fix

* revert
2024-09-20 09:29:31 +10:00
eryue0220
6a4eb6cb91
fix(expect): support expect.hasAssertions() (#5901)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-09-19 14:38:32 +09:00
Caleb Cox
381d70dcd1
docs(archive,log,testing): correct typos (#5995)
* docs(log,testing): replace colours with colors

Use the American spelling of colors in docs for consistency with module
and option names.

* docs(archive,testing): replace it's with its

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-16 22:48:56 +00:00
Caleb Cox
c8cda14bdc
docs(testing): fix typo in snapshot (#5994) 2024-09-17 08:46:48 +10:00
Asher Gomez
58dbbd6bd2
chore: enable no-console lint rule (#5975) 2024-09-13 15:43:13 +10:00
denobot
67e9cfa0ff
chore: release 2024.09.04 (#5908)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-09-04 19:37:53 +09:00
Kenta Moriuchi
4d4bd0eb92
refactor(archive,async,cli,csv,dotenv,encoding,expect,fmt,front-matter,fs,http,internal,log,net,path,semver,testing,text,webgpu,yaml): enable "exactOptionalPropertyTypes" option (#5892) 2024-09-04 14:15:01 +09:00
denobot
2b3683b6fb
chore: release 2024.08.26 (#5824)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-08-26 17:33:29 +09:00
Ian Bull
73987a1772
refactor(testing): align additional error messages (#5810) 2024-08-26 14:22:16 +09:00
Milly
8d1d2d7739
fix(testing): fix IsExact edge cases (#5676) 2024-08-16 20:28:29 +09:00
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