Skip to content

Commit 22a7b20

Browse files
jasonvargaclaude
andauthored
[6.x] Skip laravel-vite-plugin during Vitest runs (#14370)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b10f8ee commit 22a7b20

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

vite.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default defineConfig(({ mode, command }) => {
1414
const isRunningBuild = command === 'build';
1515
const isProdBuild = isRunningBuild && mode === 'production';
1616
const isProdDevBuild = isRunningBuild && mode === 'development';
17+
const isTesting = !!process.env.VITEST;
1718

1819
return {
1920
base: './',
@@ -25,7 +26,7 @@ export default defineConfig(({ mode, command }) => {
2526
plugins: [
2627
tsconfigPaths(),
2728
tailwindcss(),
28-
laravel({
29+
!isTesting && laravel({
2930
valetTls: env.VALET_TLS,
3031
input: ['resources/css/app.css', 'resources/js/index.js'],
3132
refresh: true,

0 commit comments

Comments
 (0)