summaryrefslogtreecommitdiffstats
path: root/vitest.config.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add typescriptAnbraten2024-10-291-25/+0
|
* feat(ui): add more emoji and code block rendering in issuesBram Hagens2024-09-241-0/+4
|
* Switch to happy-dom for testing (#29948)silverwind2024-03-261-1/+1
| | | | | | | | | | | | | | | | Use `happy-dom` again in vitest as it has caught up recently to `jsdom` in terms of features and it is a much more lightweight solution. I encountered [one bug](https://github.com/capricorn86/happy-dom/issues/1342), but it's an easy workaround until fixed. I regenerated the lockfile to get rid of the transitive dependencies so that's why the diff also has some upgrades in it. In total, this change removes 39 npm dependencies. (cherry picked from commit 82979588f4d8699097451ebb70c56a4bdd090c52)
* [gitea] Move vitest setup file to root (#29097)silverwind2024-02-101-1/+1
| | | | | | | | I'm using this convention in other projects and I think it makes sense for gitea too because the vitest setup file is loaded globally for all tests, not just ones in web_src, so it makes sense to be in the root. (cherry picked from commit 98e7e3a5f07b8bc620e26bc1ab6f7a86bccbb7cb)
* Use vitest globals (#27102)silverwind2023-09-271-0/+1
| | | | Enable [globals](https://vitest.dev/config/#globals) in vitest, reducing the noise in test files.
* Update JS dependencies, misc tweaks (#25768)silverwind2023-07-081-4/+3
| | | | | | - Update all JS dependencies minus stylelint because of https://github.com/elirasza/stylelint-stylistic/issues/12 - Misc tweaks to eslint and stylelint configs - Tested Monaco and Mermaid
* Switch to `vite-string-plugin` (#25762)silverwind2023-07-081-15/+1
| | | | | | Switch to [`vite-string-plugin`](https://github.com/silverwind/vite-string-plugin) to load SVGs as string during tests. The plugin will also be useful once we switch to vite.
* Update JS dependencies (#24218)silverwind2023-04-201-0/+1
| | | | | | - Update all js dependencies, update playwright image to jammy - Adjust eslint and vitest config - Tested build, monaco, mermaid, katex
* Improve action log display with control chars (#23820)wxiaoguang2023-04-011-0/+2
| | | | | | | | | | | Close #23680 Some CLI programs use "\r" and control chars to print new content in current line. So, the strings in one line are actually from `\rReading...1%\rReading...5%\rReading...100%` This PR tries to make the output better.
* Update JS dependencies and eslint (#22190)silverwind2022-12-201-2/+2
| | | | | | | - Update all JS dependencies to latest version - Enable unicorn/prefer-node-protocol and autofix issues - Regenerate SVGs - Add some comments to eslint rules - Tested build, Mermaid and Katex rendering
* Remove vitest globals (#21505)silverwind2022-10-191-1/+0
| | | | | | | Explicitly import them instead which is cleaner and enables better editor integration. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Switch from jest to vitest (#21444)silverwind2022-10-141-0/+33
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>