Anthony Fu
afea9638f6
chore: update ci
2022-05-14 21:31:00 +08:00
Joaquín Sánchez
775a26d5c2
fix(test:ci): reporters utils test is failing ( #1308 )
2022-05-14 21:30:20 +08:00
Anthony Fu
4a046df559
chore: lint
2022-05-14 16:36:12 +08:00
Anthony Fu
298407b175
chore: module structure
2022-05-14 16:30:24 +08:00
Anthony Fu
ec10d5889b
chore: try fix ci
2022-05-14 07:48:51 +08:00
David R. Myers
789cc938f6
fix: .resolves and .rejects expectations ( #1300 )
2022-05-13 23:45:34 +08:00
Yuyao Nie
574d072c92
fix: skip props from prototype when cloning ( #1287 )
2022-05-11 08:35:23 +00:00
Anthony Fu
2bc2620ebc
chore: try improve error log racing
2022-05-11 07:47:17 +08:00
Anthony Fu
4701e0b9b0
feat: support custom env in config
2022-05-09 21:58:23 +08:00
Yuyao Nie
cd4bed5ad3
fix: make exports prop of proxy point to exports object ( #1260 )
2022-05-09 21:07:38 +08:00
Vladimir
d4e8060f68
feat: allow passing config to sinon/fake-timers ( #1261 )
...
* feat: allow passing config to sinon/fake-timers
* chore: fix timers test
2022-05-09 11:38:23 +03:00
Vladimir
21e5827aa8
test: fix "fails" tests ( #1271 )
2022-05-08 16:42:07 +03:00
Cédric Exbrayat
07eeb28c6e
chore: repro --no-threads issues ( #1060 )
...
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Co-authored-by: Vladimir Sheremet <sheremet.va@icloud.com>
2022-05-08 14:37:14 +08:00
Vladimir
555aba654c
fix: calling global functions in happy-dom, refactor sharing global state ( #1262 )
...
* chore: top/parent also the share the same state with globalThis
* fix: can call global functions without explicit this
* chore: move shouldBind check outside of defineProperty
* chore: cleanup
2022-05-08 13:34:37 +08:00
Anthony Fu
29c8cee5c4
chore: update deps
2022-05-08 04:51:58 +08:00
Vladimir
110788a793
fix: resolve id before loading from vite ( #1204 )
...
* fix: resolve id before loading from vite
* fix: allow import actual modules inside a factory of __mocks__ file
* test: fix custom reporters test
* fix: invalidate mocks
* chore: fix compatability with node 14
* chore: fix callstack position
* chore: remove collect from worker.ts since entry doesn't export that function
* chore: fix pnpm-lock
* chore: slice "mock" from stacktrace
* chore: fix checking callstack for a function mock
* chore: add description to factory mock
* test: add test for importing itself inside __mocks__ folder
2022-05-08 04:41:05 +08:00
Vladimir
fbd797456c
feat: self/window/global share state with globalThis ( #1256 )
...
* feat: self/window/global share state with globalThis
* chore: fix infinite loop in --no-threads
* chore: add cleanup function to test-utils
2022-05-08 04:40:06 +08:00
Matija Marohnić
70bc30b3dc
fix: correctly order arguments in Jest diff util ( #1245 )
...
Some custom matchers like `@testing-library/jest-dom` use
`this.utils.diff` for the output. In Jest the order of arguments in that
util is "expected", then "received", so we're fixing the order of those
arguments here to match Jest's implementation.
2022-05-06 09:03:16 +03:00
Ari Perkkiö
4de5da7a56
fix(inline-snapshots): detect linebreaks ( #1232 )
...
* style: fix typo
* test(inline-snapshot): add test for nested object
* fix(inline-snapshots): detect linebreaks
2022-05-05 05:02:58 +08:00
Anthony Fu
657225563d
chore: lint
2022-05-03 09:28:45 +08:00
Anthony Fu
4673589125
chore: release script
2022-05-03 01:33:26 +08:00
Anthony Fu
76c389497c
feat: test.skipIf and test.runIf apis
2022-05-02 23:48:14 +08:00
Anthony Fu
317766f70f
chore: apply lint
2022-05-02 23:12:20 +08:00
Yuyao Nie
d09de8f29a
fix: diff output is incorrectly when using expect.any ( #1197 )
2022-05-02 23:07:40 +08:00
Carlos Rodrigues
4956713a77
fix: self exported module call stack error ( #1221 )
...
* fix: self exported module call stack error
* remove warning
2022-05-01 16:34:19 +00:00
Vladimir
a944a910ce
fix: todo assertion status in json output ( #1223 )
...
* fix: todo assertion status in json output
* test: fix tests for reporters
2022-05-01 17:59:08 +03:00
snowingfox
0e95cc8114
chore: correct typo ( #1199 )
2022-04-27 16:02:56 +02:00
Eric Gagnon
f2bceb2c28
feat: added support for passing a path to a custom reporter when usin… ( #1136 )
...
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-04-25 14:05:45 +00:00
Anthony Fu
4f198ef284
feat: test context ( #900 )
...
* feat: support concurrent snapshot
* feat: cleanup callback for `beforeAll` and `beforeEach`
2022-04-25 21:52:25 +08:00
Anthony Fu
713c870a55
chore: lint
2022-04-25 19:44:30 +08:00
Gustavo Bissolli
95b1ba4c17
fix: types for EachFunction are missing awaitable return ( fix : #1181 ) ( #1182 )
2022-04-22 18:46:05 +08:00
renovate[bot]
4d1e0a0ed1
fix(deps): update all non-major dependencies ( #1159 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-21 22:25:34 +08:00
Vladimir
065fe0edeb
test: fix timers resetting in tests ( #1177 )
...
* test: fix timers resetting in tests
* chore: don't format json files
2022-04-21 22:02:56 +08:00
Shinigami
7dbd837661
feat: add satisfy alias ( #1172 )
...
* feat: add satisfy alias
* test: add toSatisfy test
2022-04-20 22:20:46 +08:00
Tmk
d8e0493e26
fix: config.root priority ( #1164 )
...
* fix: config.root priority
* test: add vite config root test
2022-04-19 11:38:02 +08:00
Mikael Selander
ab8e2b892e
fix: remove invalid xml characters in junit reporter output ( fix #1144 ) ( #1145 )
2022-04-14 14:42:35 +08:00
renovate[bot]
40c26ed3b8
chore(deps): update all non-major dependencies ( #1137 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-13 07:53:43 +08:00
steve-py96
a63cfa2e51
feat: extend config.outputFile to allow objects, close #1068 ( #1073 )
...
Co-authored-by: steve <steve.scheder@avenga.com>
2022-04-08 02:15:58 +08:00
Vladimir
eb13d34c0a
feat: add vi.resetModules ( #1102 )
2022-04-07 02:49:43 +08:00
Guido D'Orsi
0b6d980c80
fix(mock-api): provide an explainatory error message when the mocks API hoisting doesn't work ( #1098 )
2022-04-07 02:06:56 +08:00
Vladimir
5cc592be97
feat: add resolveSnapshotPath option ( #1101 )
2022-04-05 18:04:33 +08:00
Vladimir
6f552751df
fix: don't reexport vi utils from vitest ( #1100 )
2022-04-05 18:04:08 +08:00
renovate[bot]
16684b2ae2
chore(deps): update all non-major dependencies ( #1094 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-04 10:56:54 +08:00
Vladimir
668015277f
fix: typescript allows new Spy, add lastCall support for spy ( #1085 )
2022-04-03 18:41:03 +08:00
Anthony Fu
db824cf434
chore: apply lint
2022-04-03 16:35:29 +08:00
Vladimir
15829489eb
feat: stubGlobals helper ( #1079 )
2022-04-03 00:10:50 +08:00
Anthony Fu
43f681914a
chore: update deps
2022-04-02 00:30:52 +08:00
Zixuan Chen
3326332528
fix: align json output with jest's ( #1034 )
2022-03-29 17:38:11 +08:00
renovate[bot]
ffa0228034
chore(deps): update all non-major dependencies ( #1042 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-28 10:13:38 +08:00
Vladimir
a880d3f17a
fix: event target mismatch with global event ( #1036 )
...
* fix: event target mismatch with global event
* test: dom doesn't throw
* chore: cleanup
2022-03-27 17:11:31 +08:00