You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
importswcfrom"unplugin-swc";import{defineConfig}from"vitest/config";exportdefaultdefineConfig({test: {globals: true,root: "./"},plugins: [// This is required to build the test files with SWCswc.vite({// Explicitly set the module type to avoid inheriting this value from a `.swcrc` config filemodule: {type: "es6"}})]});
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:
Acceptance criteria
The text was updated successfully, but these errors were encountered: