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
Yoshiya Hinosawa
d32fcaa662
docs(testing): mention default serializer ( #5590 )
2024-07-31 16:45:22 +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
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
3db13cb886
refactor(testing): remove @std/fmt/colors
dependency from snapshot
module ( #5145 )
2024-06-26 15:23:17 +10: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
Yoshiya Hinosawa
44bc90065b
refactor(testing): do not use assertEquals in snapshot.ts ( #4930 )
2024-06-02 19:28:31 +09:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase ( #4650 )
2024-04-29 11:57:30 +09: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
733b60e4b2
chore(fmt): replace stripColor()
use with stripAnsiCode()
( #3902 )
2023-12-06 17:58:42 +11:00
Hirotaka Tagawa / wafuwafu13
51cfcb65d8
fix(testing/snapshot): distinguish between singular and plural forms ( #3625 )
2023-09-06 11:02:45 +09:00
Yoshiya Hinosawa
ee6856c2ed
refactor: move _util/diff
to assert/_diff
( #3563 )
2023-08-23 16:45:32 +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
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts
to std/assert
( #3445 )
2023-07-13 16:04:30 +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
Hirotaka Tagawa / wafuwafu13
d3e48570ab
feat(testing): report the number of removed snapshots ( #3435 )
2023-06-10 19:02:09 +09:00
Hirotaka Tagawa / wafuwafu13
d42db5ba90
refactor(testing): remove unnecessary context processing in snapshot teardown ( #3422 )
2023-06-07 14:05:47 +09:00
Geert-Jan Zwiers
69556068c7
chore: remove powershell note in snapshot docs ( #3205 )
2023-02-17 09:54:40 -05:00
ayame113
b4239898d6
chore: update copyright header ( #3082 )
2023-01-03 19:47:44 +09:00
Leo Kettmeir
aba5017d43
docs: reorganize docs ( #2658 )
2022-11-25 12:40:23 +01:00
ayame113
e6189c08e9
docs: Using absolute paths in jsdoc import statements ( #2762 )
2022-10-10 10:05:56 -04:00
Asher Gomez
3b9fb39ddd
chore: remove void
and Promise<void>
return types ( #2550 )
2022-08-24 10:21:57 +09:00
Kitson Kelly
e83306672e
docs: improve module documentation ( #2511 )
2022-08-11 21:51:20 +10:00
Ben Heidemann
583554de46
feat: add createAssertSnapshot ( #2403 )
2022-07-02 18:24:42 +09:00
cuobiezi
4c1e1bff7c
fix: assertSnapshot errors on empty snapshot in non-update mode ( #2269 )
2022-05-30 15:21:05 +02:00
Mark Ladyshau
1bba810b48
refactor: replace TS private
with private identifiers ( #2272 )
2022-05-27 21:27:13 +09:00
Ben Heidemann
bab7056ff0
feat(testing/snapshot): add "assertSnapshot" options overload ( #2179 )
2022-05-06 22:05:27 +09:00
Ben Heidemann
d9fd8a171a
BREAKING(testing/snapshot): change multiline string serialization ( #2166 )
2022-05-03 21:21:11 +09:00
Ben Heidemann
0ea7b3f2b3
test(testing/snapshot): fix unexpected truncation of long strings in snapshots ( #2150 )
2022-04-26 12:54:45 +09:00
Yongwook Choi
7b44ec31cd
feat(testing): Implement "assertSnapshot" ( #2039 )
...
This commits adds "assertSnapshot" API as part of "testing" module.
This API is modelled after Jest's API and can be used to compare
test results with previously saved result in a file.
Co-authored-by: Ben Heidemann <ben@heidemann.co.uk>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-04-20 13:46:21 +02:00