34 Commits

Author SHA1 Message Date
Dunqing
a4501d6bdc
fix(expect): Object.freeze breaks toEqual (#4303) 2023-10-16 08:19:23 +01:00
Han
b50cf7ad9c
feat(config): add diff option (#4063)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-09-18 17:47:19 +02:00
Vladimir
9423b6f85e
fix(expect): correctly show async matcher diff (#3960) 2023-08-16 15:49:58 +02:00
Vladimir
5c88d8e582
feat(vitest): allow calling skip dynamically (#3966) 2023-08-16 15:41:41 +02:00
Vladimir
bcb41e514f
fix: restrict access to file system via API (#3956) 2023-08-15 17:05:50 +02:00
Vladimir
f56de2a450
fix!(browser): print correct stacktrace (#3698) 2023-07-19 15:41:53 +02:00
renovate[bot]
c8c1b4a6a3
chore(deps): update all non-major dependencies (#3662)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-06-28 19:55:17 +02:00
Vladimir
91e1650ec8
fix(utils): respect all flags in format function (#3695) 2023-06-28 15:45:36 +02:00
Vladimir
f91da4849f
feat: don't rely on util package in @vitest/utils (#3685) 2023-06-27 19:52:59 +02:00
renovate[bot]
82d7cbc2e9
chore(deps): update all non-major dependencies (#3315)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-06-20 16:11:48 +02:00
Sebastian Lorenz
2fb4cefffd
fix: util import (#3621) 2023-06-20 12:48:04 +02:00
Vladimir
d756ee2495
fix(browser): correctly print diff (#3627) 2023-06-20 10:04:58 +02:00
Vladimir
73dd4ab54a
fix: show diff correctly (#3620) 2023-06-19 18:38:04 +02:00
Vladimir
9c7ea3820f
fix: revert concordance diff, use jest's diff output (#3582) 2023-06-16 11:21:59 +02:00
Dunqing
7c687adafd
feat(expect): support expect.soft (#3507) 2023-06-06 17:43:48 +02:00
Pierre Criulanscy
f75ab65021
fix: assertion diff message now handle non writable property correctly (#3422) 2023-05-30 12:38:54 +02:00
Vladimir
32b5361fc0
fix: don't print empty diff (#3437) 2023-05-23 20:03:42 +02:00
pacexy
dcf1346a8b
fix: toMatchInlineSnapshot fails when file path includes parentheses (fix #3370) (#3371) 2023-05-17 08:33:25 +00:00
btea
a5b3d78eda
fix: display error message correctly (#3314) 2023-05-17 09:46:58 +02:00
renovate[bot]
48c4e8c68b
chore(deps): update all non-major dependencies (#3238)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-05-04 08:18:01 +02:00
Vladimir
0c09a40d2b
feat!: update mock implementation to support ESM runtime, introduce "vi.hoisted" (#3258) 2023-04-27 15:04:05 +02:00
Vladimir Sheremet
4f6c134013 fix: test.each respects chaiConfig 2023-04-11 13:06:00 +02:00
Vladimir
7af644440b
fix: publish utils and snapshot .d.ts files for typescript (#3172) 2023-04-11 10:11:16 +02:00
renovate[bot]
0f86ff9897
chore(deps): update all non-major dependencies (#2766)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-06 16:53:03 +02:00
Vladimir
6aff0176db
feat!: move snapshot implementation into @vitest/snapshot (#3032) 2023-03-29 15:35:51 +02:00
Vladimir
446308da9d
feat!: use "concordance" package to display diff instead of using custom diff (#2828) 2023-03-29 14:16:52 +02:00
Tim Griesser
196a067a42
fix: handle cloning proxied classes w/ enumerable getters (#3026) 2023-03-24 11:05:44 +01:00
Vladimir
ee6f590dfe
feat: show browser console in the terminal (#3048) 2023-03-22 16:36:37 +01:00
Vladimir
18d8019999
refactor: update colors implementation (#2975) 2023-03-07 20:23:49 +01:00
Vladimir Sheremet
427b06221e feat: use custom colors implementation instead of picocolors 2023-03-07 19:14:59 +01:00
Vladimir
7bf54505a1
feat!: use child_process when --no-threads is used (#2772) 2023-02-25 09:10:31 +01:00
Vladimir
fcd2df2c23
refactor: update errors (#2816)
* perf: bypass source map handling, when using "resolves"/"rejects"

* chore: revert snapshot improvements

* test: fix test

* chore: fix initialization

* chore: fix snapshot
2023-02-11 16:53:41 +01:00
Vladimir
482b72fc5f
feat!: move test runner into a separate package (#2721)
Closes https://github.com/vitest-dev/vitest/issues/1470
2023-01-23 10:14:50 +01:00
Vladimir
c8e6fb6930
feat!: split vitest into separate packages (#2575) 2023-01-02 10:37:37 +01:00