fix --radius CSS variable not being taken from the themes.ts definition #71
Annotations
20 errors
Test (lts/*, ubuntu-latest):
src/generate.ts#L105
Prefer using a logical operator over a ternary
|
Test (lts/*, ubuntu-latest):
src/generate.ts#L105
Extra semicolon
|
Test (lts/*, ubuntu-latest)
Process completed with exit code 1.
|
Test (lts/-1, ubuntu-latest):
src/generate.ts#L105
Prefer using a logical operator over a ternary
|
Test (lts/-1, ubuntu-latest):
src/generate.ts#L105
Extra semicolon
|
Test (lts/-1, ubuntu-latest)
Process completed with exit code 1.
|
test/generate.test.ts > presetShadcn()-execute-getCSS > disable color:
test/generate.test.ts#L24
Error: Snapshot `presetShadcn()-execute-getCSS > disable color 1` mismatched
- Expected
+ Received
@@ -3,11 +3,11 @@
@Keyframes shadcn-collapsible-down { from{ height: 0 } to { height: var(--radix-collapsible-content-height)} }
@Keyframes shadcn-collapsible-up { from{ height: var(--radix-collapsible-content-height)} to { height: 0 } }
:root {
- --radius: 0.5rem;
+ --radius: 0.5;
}
* {
❯ test/generate.test.ts:24:5
|
test/generate.test.ts > presetShadcn()-execute-getCSS > disable radius:
test/generate.test.ts#L34
Error: Snapshot `presetShadcn()-execute-getCSS > disable radius 1` mismatched
- Expected
+ Received
@@ -22,11 +22,11 @@
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
-
+ --radius: 0.5rem;
}
.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
❯ test/generate.test.ts:34:5
|
test/generate.test.ts > generate-theme-css-var > built in themes:
test/generate.test.ts#L68
Error: Snapshot `generate-theme-css-var > built in themes 2` mismatched
- Expected
+ Received
@@ -16,11 +16,11 @@
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 0 0% 89.8%;
--input: 0 0% 89.8%;
--ring: 0 0% 3.9%;
- --radius: 0.75rem;
+
}
.dark {
--background: 0 0% 3.9%;
--foreground: 0 0% 98%;
--card: 0 0% 3.9%;
❯ test/generate.test.ts:68:5
|
test/generate.test.ts > generate-theme-css-var > custom theme:
test/generate.test.ts#L77
Error: Snapshot `generate-theme-css-var > custom theme 1` mismatched
- Expected
+ Received
@@ -16,11 +16,11 @@
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
- --radius: 1rem;
+
}
.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
❯ test/generate.test.ts:77:5
|
test/generate.test.ts > generate-theme-css-var > custom theme based on built in theme:
test/generate.test.ts#L130
Error: Snapshot `generate-theme-css-var > custom theme based on built in theme 1` mismatched
- Expected
+ Received
@@ -16,11 +16,11 @@
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
- --radius: 1rem;
+ --radius: 0.5rem;
}
.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
❯ test/generate.test.ts:130:5
|
test/generate.test.ts > generate-theme-css-var > generate multiple themes:
test/generate.test.ts#L144
Error: Snapshot `generate-theme-css-var > generate multiple themes 1` mismatched
- Expected
+ Received
@@ -60,11 +60,11 @@
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 0 0% 89.8%;
--input: 0 0% 89.8%;
--ring: 0 0% 3.9%;
- --radius: 0.75rem;
+
}
.dark .theme-neutral {
--background: 0 0% 3.9%;
--foreground: 0 0% 98%;
--card: 0 0% 3.9%;
❯ test/generate.test.ts:144:5
|
Test (lts/-1, windows-latest)
Process completed with exit code 1.
|
test/generate.test.ts > presetShadcn()-execute-getCSS > disable color:
test/generate.test.ts#L24
Error: Snapshot `presetShadcn()-execute-getCSS > disable color 1` mismatched
- Expected
+ Received
@@ -3,11 +3,11 @@
@Keyframes shadcn-collapsible-down { from{ height: 0 } to { height: var(--radix-collapsible-content-height)} }
@Keyframes shadcn-collapsible-up { from{ height: var(--radix-collapsible-content-height)} to { height: 0 } }
:root {
- --radius: 0.5rem;
+ --radius: 0.5;
}
* {
❯ test/generate.test.ts:24:5
|
test/generate.test.ts > presetShadcn()-execute-getCSS > disable radius:
test/generate.test.ts#L34
Error: Snapshot `presetShadcn()-execute-getCSS > disable radius 1` mismatched
- Expected
+ Received
@@ -22,11 +22,11 @@
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
-
+ --radius: 0.5rem;
}
.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
❯ test/generate.test.ts:34:5
|
test/generate.test.ts > generate-theme-css-var > built in themes:
test/generate.test.ts#L68
Error: Snapshot `generate-theme-css-var > built in themes 2` mismatched
- Expected
+ Received
@@ -16,11 +16,11 @@
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 0 0% 89.8%;
--input: 0 0% 89.8%;
--ring: 0 0% 3.9%;
- --radius: 0.75rem;
+
}
.dark {
--background: 0 0% 3.9%;
--foreground: 0 0% 98%;
--card: 0 0% 3.9%;
❯ test/generate.test.ts:68:5
|
test/generate.test.ts > generate-theme-css-var > custom theme:
test/generate.test.ts#L77
Error: Snapshot `generate-theme-css-var > custom theme 1` mismatched
- Expected
+ Received
@@ -16,11 +16,11 @@
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
- --radius: 1rem;
+
}
.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
❯ test/generate.test.ts:77:5
|
test/generate.test.ts > generate-theme-css-var > custom theme based on built in theme:
test/generate.test.ts#L130
Error: Snapshot `generate-theme-css-var > custom theme based on built in theme 1` mismatched
- Expected
+ Received
@@ -16,11 +16,11 @@
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
- --radius: 1rem;
+ --radius: 0.5rem;
}
.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
❯ test/generate.test.ts:130:5
|
test/generate.test.ts > generate-theme-css-var > generate multiple themes:
test/generate.test.ts#L144
Error: Snapshot `generate-theme-css-var > generate multiple themes 1` mismatched
- Expected
+ Received
@@ -60,11 +60,11 @@
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 0 0% 89.8%;
--input: 0 0% 89.8%;
--ring: 0 0% 3.9%;
- --radius: 0.75rem;
+
}
.dark .theme-neutral {
--background: 0 0% 3.9%;
--foreground: 0 0% 98%;
--card: 0 0% 3.9%;
❯ test/generate.test.ts:144:5
|
Test (lts/*, windows-latest)
Process completed with exit code 1.
|