73 Commits

Author SHA1 Message Date
Vladimir
c0a2f3fc56
refactor: remove barrel utils (#6716) 2024-10-15 13:59:59 +02:00
renovate[bot]
d260cef634
chore(deps): update all non-major dependencies (#6360)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-10-14 13:43:10 +02:00
Hiroshi Ogawa
f131f93ba3
fix(browser): fix browser mock factory event race condition (#6530) 2024-09-25 10:33:58 +02:00
renovate[bot]
84a066af0e
chore(deps): update dependency @antfu/eslint-config to v3 (#6435)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-09-02 10:16:37 +02:00
Vladimir
95f0203f27
feat(mocker): introduce @vitest/mocker package, allow { spy: true } instead of a factory (#6289) 2024-08-21 17:17:27 +02:00
Vladimir
30dc579309
fix(browser): keep querying elements even if locator is created with elementLocator, add pubic @vitest/browser/utils (#6296) 2024-08-07 13:40:18 +02:00
Vladimir
13d85bd19a
feat: introduce experimental reported tasks (#6149) 2024-07-30 13:21:40 +02:00
Vladimir
291766d75c
fix: show a difference between string characters if both values are strings (#6191) 2024-07-22 12:40:06 +02:00
Vladimir
f1ef2f6362
refactor(runner): add docs to @vitest/runner, remove barrel files (#6126) 2024-07-15 17:43:05 +02:00
renovate[bot]
f55dc0081d
chore(deps): update all non-major dependencies (#6046)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-07-15 17:10:15 +02:00
Vladimir
80a43d5c7c
fix(browser): inline pretty-format and replace picocolors with tinyrainbow (#6077) 2024-07-10 15:08:44 +02:00
Vladimir
62aa720812
fix(browser): print correct stack trace in source files (#6003) 2024-06-30 18:26:14 +02:00
Vladimir
154cb22de6
feat(browser): add an option to take screenshots if the browser test fails (#5975) 2024-06-25 22:04:55 +02:00
Vladimir
4dbea4aed1
feat(browser): implement several userEvent methods, add fill and dragAndDrop events (#5882) 2024-06-18 13:29:49 +02:00
Vladimir
471cf97b0c
chore: always require curly braces (#5885)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2024-06-16 18:10:10 +02:00
Dmytro Tiapukhin
8d55d6bd49
fix: toJSON recursive error serialization (fix #5848) (#5884) 2024-06-16 14:21:31 +02:00
Vladimir
81c42fc8a8
feat(browser): run tests in parallel in headless mode, add page.screenshot method (#5853) 2024-06-12 14:06:05 +02:00
Vladimir
973ba37403
chore: update eslint config package (#5870) 2024-06-11 16:31:37 +02:00
Pengoose
9ac8ff9bd2
fix(runner): Ensure test.each print -0 and -NaN properly (#5806) 2024-06-03 09:01:49 +02:00
Vladimir
7b2f64cfa3
feat: implement module mocking in browser mode (#5765) 2024-05-31 11:19:38 +02:00
Hiroshi Ogawa
a4ec583191
fix(utils): fix color util maximum call stack error (#5733) 2024-05-17 14:11:11 +02:00
Vladimir
77f4af6578
chore: update eslint rules (#5721) 2024-05-14 19:25:40 +02:00
renovate[bot]
7a843c1043
chore(deps): update all non-major dependencies (#5499)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-05-09 16:19:56 +02:00
Nicolas DUBIEN
6faf8f84bd
feat: pretty print diffs coming from cause (#5660) 2024-05-06 10:05:42 +02:00
Hiroshi Ogawa
19a21e49f2
fix: use toJSON for error serialization (#5526) 2024-05-02 11:01:12 +02:00
btea
fc26f562a7
refactor: remove unnecessary condition (#5520) 2024-04-10 19:33:41 +02:00
Willie Ho
6797b0412b
feat: add configuration for diff truncation (#5073) (#5333) 2024-04-05 13:03:46 +02:00
Hiroshi Ogawa
366d97c335
fix(utils): fix object diff with getter only property (#5466) 2024-04-02 12:58:56 +02:00
Hiroshi Ogawa
3ffcd2ea62
fix(utils): fix asymmetric matcher diff inside array (#5189) 2024-02-13 08:27:03 +01:00
Vladimir
dcf0d6afe9
chore(deps): update antfu stylelint config (#5127) 2024-02-06 22:00:31 +01:00
Vladimir
714c911f7e
fix(browser): don't exclude node builtins from optimization (#5082) 2024-01-31 10:39:13 +01:00
Vladimir
8c969de286
feat: add syntax highlighting to error messages (#4813) 2024-01-12 14:44:27 +01:00
Hiroshi Ogawa
9ae9dac955
fix(utils): fix objDisplay default truncate option for test.each title (#4917) 2024-01-12 10:59:02 +01:00
Vladimir
f99cc3132d
fix(vitest): throw "cannot mock" error only in isolated pools (#4905) 2024-01-09 16:39:18 +01:00
Dunqing
e0b8c54ea6
refactor(vitest): reimplement hoistMocks to fix incorrect dynamic imports (#4664) 2024-01-03 13:14:34 +01:00
Vladimir
cc19117d30
chore: migrate to flat eslint config (#4472) 2023-11-11 08:07:39 +01:00
Vladimir
8983cd48e8
fix: don't expand snapshot diff by default (#4430) 2023-11-06 08:59:01 +01:00
Vladimir
9527e65a38
chore: improve build time and memory usage (#4369) 2023-10-25 11:19:49 +02:00
Clark Fischer
6b73473fa4
feat(vitest): filter stacktraces (fix #1999) (#4338) 2023-10-23 17:04:34 +02:00
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