tsedio / tsed-cli

💻 CLI for Ts.ED framework
MIT License
42 stars 20 forks source link

[TECH] Replace Jest by VitePress #371

Open Romakita opened 7 months ago

Romakita commented 7 months ago
## Information Vitetest can be used to run test since the unplugin-swc is released and support TS legacy decorator. Here is an example of vitest.config.ts required to run test correctly: ```ts import swc from "unplugin-swc"; import {defineConfig} from "vitest/config"; export default defineConfig({ test: { globals: true, root: "./" }, plugins: [ // This is required to build the test files with SWC swc.vite({ // Explicitly set the module type to avoid inheriting this value from a `.swcrc` config file module: {type: "es6"} }) ] }); ``` > Note: Vitest support workspace https://vitest.dev/guide/workspace.html . It can be interesting to use it on this project to run all test. ## Acceptance criteria - [ ] All tests run - [ ] Coverage are updated correctly