Commit Graph

327 Commits

Author SHA1 Message Date
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
Gabriele Belluardo
2990aa6de5
chore: enable single-var-declarator lint rule (#4488) 2024-03-14 22:18:00 +11:00
Yoshiya Hinosawa
45f7a6b460
chore(testing): update snapshot testing expectations (#4416) 2024-02-29 21:38:35 +09:00
David Sherret
ef6b95f0c7
refactor: make the code work under verbatimModuleSyntax (#4406)
* Start

* Update

* Format

* Revert deno.json change

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-27 21:57:25 +00:00
Kyle June
c6ed026ec4
feat(testing): explicit resource management for spy() and stub() (#4306)
* feat(testing): Explicit resource management for `spy()` and `stub()`

* Undo explicitly making FakeTime Disposable

* Update test cases to use explicit resource management

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-16 15:26:33 +11:00
David Luis
ad4abccb66
docs: replace markdown hyperlink syntax with {@link} tag where necessary. (#4253)
docs: replaces markdown hyperlink syntax with `{@link}` tag when necessary.
2024-02-01 09:19:46 +11: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