Commit Graph

69 Commits

Author SHA1 Message Date
Ian Bull
7539060ceb
refactor(expect): align error messages in the matchers (#5835) 2024-08-27 14:18: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
f1d04d6403
refactor(expect): align additional error messages (#5811) 2024-08-26 14:27:49 +09:00
Asher Gomez
a549b786bd
docs(expect): correct expect() docs (#5788) 2024-08-25 16:20:08 +10:00
Yoshiya Hinosawa
b1b1e5c56d
docs(expect): add examples of matcher usages (#5553) 2024-07-26 19:39:06 +09:00
Yoshiya Hinosawa
b6b0d68381
chore: release expect@1.0.0 (#5455) 2024-07-22 20:50:26 +09:00
Yoshiya Hinosawa
a8a637fb92
docs(expect): link to matcher docs (#5502) 2024-07-22 15:09:00 +09:00
Asher Gomez
88019ee78d
docs(expect): minor doc tweaks (#5501)
* docs(expect): minor doc tweaks

* tweaks
2024-07-22 12:17:47 +09:00
denobot
3ee4c4dd43
chore: release 2024.07.19 (#5494)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-19 20:22:43 +09:00
Simon Lecoq
83fe1f754f
fix(expect): improve expect type to make it work better with expect.extend (#5309) 2024-07-16 13:09:06 +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
Simon Lecoq
a92e1b6060
fix(expect): make .not aware of whether is it is in async context (#5308) 2024-07-05 08:45:04 +10:00
Asher Gomez
f1952eca20
fix(bytes,cli,collections,expect): add missing non-null assertions (#5280)
fix(bytes,cli,collections,expect): add non-null assertions
2024-07-04 00:12:41 +02:00
Asher Gomez
375e914050
refactor(expect,testing): update @std/assert imports (#5242) 2024-07-02 14:07:46 +10:00
Asher Gomez
5803cc9172
BREAKING(assert): remove assert from module names (#5176)
* BREAKING(assert): remove `assert` from module names

* work

* fix

* work

* work

* tweaks

* fix
2024-07-02 13:42:40 +10:00
Yoshiya Hinosawa
76113d67fe
BREAKING(expect): remove special handling of Immutable.js objects (#5228) 2024-07-02 12:33:08 +09:00
Asher Gomez
b11514e21d
refactor(expect): remove expect.addSnapshotSerializer(s) (#5231) 2024-07-02 06:09:57 +10:00
Asher Gomez
6e9c2e9aef
chore(expect): release expect@1.0.0-rc.1 (#5235) 2024-07-01 21:52:31 +10:00
Yoshiya Hinosawa
335e073f98
fix(expect): fix validation of nth param in toHaveBeenNthCalledWith matcher (#5227) 2024-07-01 18:14:19 +09:00
Yoshiya Hinosawa
9a4dffff98
test(expect): test edge cases of matchers (#5226) 2024-07-01 18:13:47 +09:00
Yoshiya Hinosawa
90025e9db4
test(expect): add test of iterableEquality (#5222)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-01 16:06:52 +09:00
Yoshiya Hinosawa
76cf563c42
test(expect): improve expect test cases (#5221) 2024-07-01 14:25:42 +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
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
Madhav Ganesan
ab458a38fa
refactor(archive,expect,io,log,toml,yaml): remove private and public access modifiers (#5077)
* replaced public and private access modifiers #5066

* fix: run `deno fmt`

* fix: apply suggestions

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-06-21 14:13:08 +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
31b906db99
chore: ensure code examples use assertions in Doc Linter (#4911) 2024-06-03 14:10:27 +10:00
Asher Gomez
79d6a70729
docs(assert,cli,data-structures,expect,fmt,front-matter,html,http,jsonc,semver,streams,text,toml,webgpu): add snippet checks in module, function and class docs to doc checker (#4855)
* chore: add snippet checks to module docs

* fix

* work

* tweak
2024-05-31 12:01:46 +10:00
denobot
673c436739
chore: release 2024.05.29 (#4883)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-05-29 18:56:12 +09:00
Satya Rohith
caac76fd34
docs(expect): document methods and add examples (#4836) 2024-05-23 16:50:11 +05:30
denobot
51dc36d563
chore: release 2024.05.22 (#4830)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-05-22 19:57:28 +09:00
Jacob Avery
7d4b54da68
fix(expect): updated error message for toContain (#4750)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-05-17 14:33:05 +09:00
Asher Gomez
9c32f3a57b
refactor(assert,internal): rename diffstr() to diffStr() (#4758) 2024-05-17 15:32:03 +10:00
denobot
66e8fc9869
chore: release 2024.05.16 (#4755)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-05-16 20:10:44 +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
Asher Gomez
48a1982d10
fix(expect): don't swallow the original error while creating assertion error (#4700)
refactor(expect): remove unreachable logic
2024-05-09 16:29:13 +10:00
Michael Herzner
b649680328
test(assert): improve test coverage (#4679)
* test(assert): improve test coverage

* chore: format

* chore: lint

* nits

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-05-07 00:08:16 +00:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
Asher Gomez
f57ac69735
refactor(assert,expect): use shared format.ts and diff.ts (#4592) 2024-04-16 17:09:40 +10:00
Yuki Tanaka
e299c8b689
deprecation(expect): rename addSnapshotSerializers to addSnapshotSerializer (#4582) 2024-04-15 16:39:02 +10:00
Asher Gomez
46d9fa594c
chore: update browser-compatible files with declaration (#4560) 2024-04-10 12:43:44 +10:00
cinchen
8227afed20
feat(expect): support expect.addSnapshotSerialize() api (#4537) 2024-04-02 19:44:40 +09:00
David Sherret
26d3fc3031
chore: enable verbatim-module-syntax lint rule (#4539)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-04-02 00:57:05 +00:00
David Luis
1c38d2c886
feat(expect): add expect.{closeTo, stringContaining, stringMatching} (#4508) 2024-03-26 11:57:40 +09:00
Marvin Hagemeister
44760886e7
fix(expect/assert): missing constructor equality check (#4512)
* fix(expect/assert): missing constructor equality check

* fix: switch to jest constructor-style checks

* chore: add one more test case

* chore: move test assertion

* chore: use strict equality check
2024-03-22 22:24:19 +01:00
Gabriele Belluardo
2990aa6de5
chore: enable single-var-declarator lint rule (#4488) 2024-03-14 22:18:00 +11:00
Asher Gomez
540a9675b6
refactor(expect): prepare for noUncheckedIndexedAccess (#4464) 2024-03-11 20:31:38 +11:00
Zhao
5fa58a7bd5
refactor(expect): use === instead of == (#4446) 2024-03-07 07:45:29 +09:00
cinchen
cec0c680a5
fix(expect): fix equality of iterables (#4286)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-03-05 18:26:12 +09:00
cinchen
76e3ec8898
feat(expect): support expect.extend() api (#4412)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-03-04 20:57:08 +09:00