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

Not working with happy-dom #131

Open
ivanafanasyeu opened this issue Jan 6, 2024 · 0 comments
Open

Not working with happy-dom #131

ivanafanasyeu opened this issue Jan 6, 2024 · 0 comments

Comments

@ivanafanasyeu
Copy link

This one is not working, requires to install jsdom. If I remove solidPlugin, starts working with no issues

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

import { getViteConfig } from 'astro/config';
import solidPlugin from 'vite-plugin-solid';

export default getViteConfig({
	test: {
		globals: true,
		environment: 'happy-dom',
		include: ['src/**/*.test.{js,ts}'],
		testTransformMode: { web: ['/.[jt]sx?$/'] },
		css: true
	},
	build: {
		target: 'esnext'
	},

	plugins: [solidPlugin()]
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant