Replace Ruby Vite plugins (#35195)

Co-authored-by: Renaud Chaput <renchap@gmail.com>
This commit is contained in:
Echo 2025-07-17 12:04:04 +02:00 committed by GitHub
parent 19626ad89f
commit 9e6a9efe10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 153 additions and 106 deletions

View file

@ -1,9 +1,6 @@
import { resolve } from 'node:path';
import { storybookTest } from '@storybook/addon-vitest/vitest-plugin';
import react from '@vitejs/plugin-react';
import svgr from 'vite-plugin-svgr';
import tsconfigPaths from 'vite-tsconfig-paths';
import {
configDefaults,
defineConfig,
@ -13,15 +10,13 @@ import {
import { config as viteConfig } from './vite.config.mjs';
const storybookTests: TestProjectInlineConfiguration = {
extends: true,
plugins: [
// See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest
storybookTest({
configDir: '.storybook',
storybookScript: 'yarn run storybook',
}),
react(),
svgr(),
tsconfigPaths(),
],
test: {
name: 'storybook',