Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to vite and vitest and update matrix-widget-toolkit dependencies #702

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
7 changes: 7 additions & 0 deletions matrix-meetings-widget/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@

/// <reference types="vitest" />

import path from 'path';
import { defineConfig } from 'vite';

export default defineConfig({
test: {
alias: {
// solve "You are loading @emotion/react when it is already loaded…" issue
Copy link
Contributor

@MTRNord MTRNord Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we could also use this in neoboard :D there we see the same thing :)

'@emotion/react': path.resolve(
'../node_modules/@emotion/react/dist/emotion-react.cjs.mjs',
),
},
environment: 'jsdom',
setupFiles: ['./src/setupTests.ts'],
exclude: ['build', 'lib'],
Expand Down
Loading