909 Commits

Author SHA1 Message Date
Ari Perkkiö
a4ae57440a
test: fix stdin.test.ts pattern (#5001) 2024-01-19 07:26:26 +02:00
Vladimir
f8bff9efb8
fix(vitest): throw a syntax error if vi.hoisted is directly exported (#4969) 2024-01-17 15:43:09 +01:00
Hiroshi Ogawa
21f5744ddb
fix(vite-node): externalize network imports (#4987) 2024-01-17 15:42:30 +01:00
Vladimir
6c5fe49be4
fix(browser): don't fail when calling vi.useFakeTimers (#4992) 2024-01-17 15:37:04 +01:00
Vladimir
8877e22a09
fix(vitest): use development/production conditions when resolving external modules (#4980) 2024-01-17 11:20:43 +01:00
Hiroshi Ogawa
7d9f673e90
chore(deps): update playwright (#4988) 2024-01-17 10:22:51 +01:00
Hiroshi Ogawa
39a7169c8a
fix(vitest): check color support for intercepted console logging (#4966) 2024-01-16 13:53:39 +01:00
Hiroshi Ogawa
6c1cc78bac
fix(browser): fix browser testing url for https (#4855) 2024-01-16 13:50:38 +01:00
Hiroshi Ogawa
06bae4ddab
fix(expect): implement chai inspect for AsymmetricMatcher (#4942)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-15 15:02:15 +01:00
Hiroshi Ogawa
088dc05933
test: uncomment fixed test (#4948) 2024-01-15 14:34:46 +01:00
Hiroshi Ogawa
db01f6c209
fix(browser): apply inlined workspace config to browser mode vite server (#4947) 2024-01-15 14:34:28 +01:00
Ari Perkkiö
4b41131af2
fix(coverage): thresholds.autoUpdate to work with arrow function configuration files (#4959) 2024-01-15 14:21:44 +01:00
Vladimir
6bfdb5f4fc
refactor: improve highlighted function (#4967) 2024-01-15 11:38:33 +01:00
Hiroshi Ogawa
dcf2e9f238
fix(vitest): handle single await vi.hoisted (#4962) 2024-01-15 11:37:38 +01:00
Vladimir
c2cceebbfd
feat(vitest): allow overiding package installer with public API (#4936) 2024-01-12 17:04:31 +01:00
Tigran
463bee3846
feat: allow extending toEqual (fix #2875) (#4880)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-12 16:41:39 +01:00
Gergő Takács
7f59a1b858
feat(ui): show unhandled errors on the ui (#4380)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-12 16:06:35 +01:00
Vladimir
3ca31749ed
refactor: make a standard API to run tests inside a worker (#4441) 2024-01-12 14:44:40 +01:00
Ari Perkkiö
96dc6e9aaf
feat(coverage): custom reporter support (#4828) 2024-01-12 14:25:43 +01:00
Yuta Nakamura
480d866aaa
feat: Add typeahead search (#4275) (#4733)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-12 14:25:33 +01:00
Hiroshi Ogawa
ccb258369a
feat(vitest): show slow test duration in verbose reporter on CI (#4929) 2024-01-12 14:20:39 +01:00
Hiroshi Ogawa
43fa6baa6d
feat(vitest): add --disable-console-intercept option to allow opting-out from automatic console log interception (#4786) 2024-01-12 14:19:34 +01:00
Vladimir
1663f5ca00
fix(vitest): add inlined deps to ssr.noExternal so they are added to the module graph (#4945) 2024-01-12 14:06:10 +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
528bd558d1
fix(vitest): call global teardown when using workspaces (#4935) 2024-01-11 14:57:16 +01:00
Vladimir Sheremet
ac66481c86 chore: fix test package names 2024-01-11 14:06:00 +01:00
David Ortner
91719bbd78
fix(happy-dom): window.close() for environment teardown (#4931) 2024-01-11 13:51:35 +01:00
Vladimir
c4eacbb7c6
fix(vitest): show correct error when vi.hoisted is used inside vi.mock and the other way around (#4916) 2024-01-10 15:33:25 +01:00
Vladimir
ca62f37a88
fix(vitest): don't throw SyntaxError when "await vi.hoisted" is used (#4915) 2024-01-09 16:39:27 +01:00
Ari Perkkiö
e9fe41811d
fix(workspace): support overring pool and poolOptions on project level (#4765) 2024-01-09 15:43:50 +01:00
Hiroshi Ogawa
508fced95d
fix(browser): fix updating snapshot during watch mode (#4867)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-09 15:42:51 +01:00
Hiroshi Ogawa
4add951622
fix(browser): fix testNamePattern config (#4909) 2024-01-09 15:41:15 +01:00
Hiroshi Ogawa
f8ba80f2d9
fix(vitest): fix tap reporter to handle custom error (#4897) 2024-01-08 11:31:46 +01:00
Hiroshi Ogawa
55f5349fa8
fix(browser): support vite config server.headers (#4890) 2024-01-08 11:31:31 +01:00
Vladimir
7719e79ee5
fix(vitest): vi.mock breaks tests when using imported variables inside the factory (#4873)
Co-authored-by: Dunqing <dengqing0821@gmail.com>
2024-01-05 09:08:24 +01:00
Vladimir Sheremet
0ec205127b test: make tests longer 2024-01-04 18:16:59 +01:00
Vladimir Sheremet
353c58f886 test: increase test timeout for CI 2024-01-04 17:56:14 +01:00
Vladimir
15bbbf8192
fix(vite-node): correctly return cached result (#4870) 2024-01-04 17:40:15 +01:00
Vladimir Sheremet
8780fe3928 ci: make wait test more reliable 2024-01-04 17:34:11 +01:00
Mike Bland
9e34557eee
fix(browser): handle config.base (#4686) (#4692)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-01-04 15:11:38 +01:00
Zac Mullett
b8140fcadc
fix(browser): resolved failure to find arbitrarily-named snapshot files when using expect(...).toMatchFileSnapshot() matcher. (#4839)
Co-authored-by: Zac Mullett <zac@Zacs-Air.modem>
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-04 12:23:33 +01:00
Mike Bland
345a25d6a8
fix(browser): avoid safaridriver collision (#4863) 2024-01-04 09:30:54 +01:00
Dunqing
1efc29b669
chore(runner): update better error message for nested test (#4652)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-01-03 19:00:58 +01:00
Vladimir
072e02bf83
fix(spy): don't allow Promise in mockImplementation (#4859) 2024-01-03 18:47:00 +01:00
Hiroshi Ogawa
1fee63f259
fix(runner): fix fixture cleanup for concurrent tests (#4827) 2024-01-03 17:57:41 +01:00
Dunqing
e0b8c54ea6
refactor(vitest): reimplement hoistMocks to fix incorrect dynamic imports (#4664) 2024-01-03 13:14:34 +01:00
Hiroshi Ogawa
2baea35e2e
fix(vitest): show beforeAll/afterAll errors in junit reporter (#4819) 2023-12-31 14:26:31 +01:00
Massimiliano Mirra
7e6a62af0a
fix: match jest json output by making json reporter output ndjson-compatible (#4824) 2023-12-31 14:22:39 +01:00
Yuta Nakamura
5053a5dd7e
fix: correct option name --no-parallelism (#4831) 2023-12-31 12:43:38 +02:00
Hiroshi Ogawa
06c14f7d9f
fix(vitest): fix file snapshots in skipped suites considered obsolete (#4795) 2023-12-28 16:29:28 +01:00