diff options
author | silverwind <me@silverwind.io> | 2022-10-14 15:36:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 21:36:16 +0800 |
commit | c3098076b5264f080fc727d73bfd538916ac02b3 (patch) | |
tree | b6e217e73159deb011e537ac90d82c1edaed15fc /web_src/js/utils.test.js | |
parent | 9dc264a2eebbd30bbff483c26bf27f0406677f77 (diff) | |
download | gitea-c3098076b5264f080fc727d73bfd538916ac02b3.tar.gz gitea-c3098076b5264f080fc727d73bfd538916ac02b3.zip |
Switch from jest to vitest (#21444)
Even if we are not bundling with `vite` yet, we can use `vitest` in
place of Jest which brings a few benefits like not requiring to use
`NODE_OPTIONS` to run and having sane module resolution.
It's possible to also use `jest-extended` with vitest, but I opted to
not do so for now because it brings heavyweight dependencies and it was
trivial to just rewrite the affected matchers to be compatible.
This PR also removes 153 JS dependencies, which is certainly nice.
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js/utils.test.js')
-rw-r--r-- | web_src/js/utils.test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/utils.test.js b/web_src/js/utils.test.js index 762f29f6fe..b56d80ac7a 100644 --- a/web_src/js/utils.test.js +++ b/web_src/js/utils.test.js @@ -56,8 +56,8 @@ test('joinPaths', () => { }); test('isObject', () => { - expect(isObject({})).toBeTrue(); - expect(isObject([])).toBeFalse(); + expect(isObject({})).toBeTruthy(); + expect(isObject([])).toBeFalsy(); }); test('uniq', () => { |