Skip to content

Commit 8bb26be

Browse files
authored
chore: vitest updated (#247)
* chore: vitest updated * chore: update
1 parent a5c39e3 commit 8bb26be

11 files changed

Lines changed: 304 additions & 308 deletions

File tree

apps/atrium-telegram/app/components/PartnerAgreementCard.vue

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,9 @@
3333
</div>
3434
</div>
3535

36-
<div v-if="agreement?.comment" class="w-full text-sm/5 text-muted font-normal whitespace-pre-wrap break-words line-clamp-5">
36+
<div v-if="agreement?.comment" class="w-full text-sm/5 text-muted font-normal whitespace-pre-wrap wrap-break-word line-clamp-5">
3737
{{ agreement.comment }}
3838
</div>
39-
40-
<!-- <div class="flex justify-between items-center">
41-
<div class="flex flex-row gap-4">
42-
<div class="flex flex-row gap-1.5 items-center text-muted">
43-
<UIcon name="i-lucide-message-circle" class="size-5" />
44-
<p>{{ epic?.comments.length }}</p>
45-
</div>
46-
</div>
47-
48-
<time
49-
:datetime="epic.createdAt"
50-
class="text-sm text-muted"
51-
v-text="format(new Date(epic.createdAt), 'от d MMMM yyyy', { locale: ru })"
52-
/>
53-
</div> -->
5439
</Section>
5540
</ActiveCard>
5641
</template>

apps/storefront-telegram/app/app.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ export default defineAppConfig({
22
ui: {
33
input: {
44
slots: {
5-
base: '!ring-default placeholder:text-muted/50',
5+
base: 'ring-default! placeholder:text-muted/50',
66
},
77
},
88
inputMenu: {
99
slots: {
10-
base: '!ring-default placeholder:text-muted/50',
10+
base: 'ring-default! placeholder:text-muted/50',
1111
},
1212
},
1313
select: {
1414
slots: {
15-
base: '!ring-default placeholder:text-muted/50',
15+
base: 'ring-default! placeholder:text-muted/50',
1616
},
1717
},
1818
selectMenu: {
1919
slots: {
20-
base: '!ring-default placeholder:text-muted/50',
20+
base: 'ring-default! placeholder:text-muted/50',
2121
},
2222
},
2323
textarea: {
2424
slots: {
25-
base: '!ring-default placeholder:text-muted/50',
25+
base: 'ring-default! placeholder:text-muted/50',
2626
},
2727
},
2828
button: {
@@ -36,22 +36,22 @@ export default defineAppConfig({
3636
},
3737
},
3838
color: {
39-
secondary: '!text-white disabled:!bg-inverted/25',
39+
secondary: 'text-white! disabled:bg-inverted/25!',
4040
},
4141
},
4242
},
4343
tabs: {
4444
variants: {
4545
variant: {
4646
pill: {
47-
trigger: 'data-[state=active]:!text-white',
47+
trigger: 'data-[state=active]:text-white!',
4848
},
4949
},
5050
},
5151
},
5252
modal: {
5353
slots: {
54-
content: 'divide-y-0 !ring-default',
54+
content: 'divide-y-0 ring-default!',
5555
header: 'pb-0 min-h-12',
5656
title: 'font-semibold',
5757
},
@@ -60,7 +60,7 @@ export default defineAppConfig({
6060
slots: {
6161
header: 'text-xl/6 font-bold font-headers',
6262
body: 'mb-12 hide-scroll',
63-
content: '!max-h-10/12 ring-default hide-scroll',
63+
content: 'max-h-10/12! ring-default hide-scroll',
6464
},
6565
},
6666
navigationMenu: {

apps/storefront-telegram/app/components/catalog/ProductCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<ActiveCard class="!p-0">
2+
<ActiveCard class="p-0!">
33
<div class="h-full flex flex-col justify-between gap-2">
44
<div class="relative w-full aspect-3/2">
55
<ProductImage

apps/web-app/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ export default defineAppConfig({
1414
gradient: 'text-white bg-linear-to-br from-secondary-400 to-secondary-500 hover:opacity-90 disabled:from-neutral-300 disabled:to-neutral-400 aria-disabled:from-neutral-300 aria-disabled:to-neutral-400 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary',
1515
},
1616
color: {
17-
secondary: '!text-white disabled:!bg-inverted/25',
17+
secondary: 'text-white! disabled:bg-inverted/25!',
1818
},
1919
},
2020
},
2121
tabs: {
2222
variants: {
2323
variant: {
2424
pill: {
25-
trigger: 'data-[state=active]:!text-white',
25+
trigger: 'data-[state=active]:text-white!',
2626
},
2727
gradient: {
2828
list: 'bg-elevated rounded-lg',

apps/web-app/app/pages/product/[productId]/usage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
thead: '[&>tr]:bg-default [&>tr]:after:content-none',
5555
tbody: '[&>tr]:last:[&>td]:border-b-0',
5656
th: 'py-1 bg-elevated/50 first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r',
57-
td: 'border-b border-default [&:has([data-media=true]))]:px-0 [&:has([data-media=true]))]:max-w-10 [&:has([data-action=true]))]:pr-0',
57+
td: 'border-b border-default [&:has([data-media=true])]:px-0 [&:has([data-media=true])]:max-w-10 [&:has([data-action=true])]:pr-0',
5858
}"
5959
>
6060
<template #id-cell="{ row }">

apps/web-app/app/pages/product/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
thead: '[&>tr]:bg-default [&>tr]:after:content-none',
7676
tbody: '[&>tr]:last:[&>td]:border-b-0',
7777
th: 'py-1 bg-elevated/50 first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r',
78-
td: 'border-b border-default [&:has([data-media=true]))]:px-0 [&:has([data-media=true]))]:max-w-16 [&:has([data-action=true]))]:pr-0',
78+
td: 'border-b border-default [&:has([data-media=true])]:px-0 [&:has([data-media=true])]:max-w-16 [&:has([data-action=true])]:pr-0',
7979
}"
8080
>
8181
<template #id-cell="{ row }">

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"pnpm": ">=10.19.0"
1414
},
1515
"scripts": {
16-
"release": "bumpp --execute=\"npm run release:prepare\" --recursive",
16+
"release": "bumpp --execute=\"pnpm run release:prepare\" --recursive",
1717
"release:prepare": "pnpm run build",
1818
"build": "pnpm -r run build",
1919
"dev:generate-cert": "mkdir -p .cert && mkcert -key-file ./.cert/localhost-key.pem -cert-file ./.cert/localhost.pem 'app.local'",
@@ -32,7 +32,7 @@
3232
"@antfu/eslint-config": "catalog:dev",
3333
"@commitlint/cli": "catalog:dev",
3434
"@commitlint/config-conventional": "catalog:dev",
35-
"@vitest/browser": "catalog:test",
35+
"@vitest/browser-playwright": "catalog:test",
3636
"@vitest/coverage-v8": "catalog:test",
3737
"bumpp": "catalog:dev",
3838
"eslint": "catalog:dev",
@@ -44,7 +44,6 @@
4444
"vitest-browser-vue": "catalog:test"
4545
},
4646
"resolutions": {
47-
"@nuxt/cli": "3.28.0",
4847
"unimport": "4.1.1"
4948
},
5049
"lint-staged": {

packages/ui/test/setup.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference types="@vitest/browser/providers/playwright" />
2-
31
import { beforeAll } from 'vitest'
42

53
beforeAll(() => {

0 commit comments

Comments
 (0)