mirror of
https://github.com/gromlab-ru/svg-sprites.git
synced 2026-09-05 16:30:19 +03:00
test: добавить площадку интеграционного тестирования
- добавлены consumer fixtures для React и Next.js - добавлены typecheck, production build и браузерные smoke-тесты - добавлена интеграционная проверка в CI
This commit is contained in:
21
integration/apps/solid-vite/src/main.tsx
Normal file
21
integration/apps/solid-vite/src/main.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { render } from 'solid-js/web'
|
||||
|
||||
import './style.css'
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<main>
|
||||
<h1>Solid + Vite</h1>
|
||||
<svg
|
||||
data-testid="icon"
|
||||
data-app="solid-vite"
|
||||
aria-label="Check icon"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<use href="/sprites/icons.sprite.svg#check" />
|
||||
</svg>
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
||||
render(() => <App />, document.getElementById('root')!)
|
||||
16
integration/apps/solid-vite/src/style.css
Normal file
16
integration/apps/solid-vite/src/style.css
Normal file
@@ -0,0 +1,16 @@
|
||||
:root {
|
||||
font-family: system-ui, sans-serif;
|
||||
color: #172033;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 40px;
|
||||
}
|
||||
|
||||
[data-testid='icon'] {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
color: #16a34a;
|
||||
}
|
||||
1
integration/apps/solid-vite/src/vite-env.d.ts
vendored
Normal file
1
integration/apps/solid-vite/src/vite-env.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
Reference in New Issue
Block a user