Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
// @vitest-environment node
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { describe, expect, test } from "vitest";
|
||||
|
||||
describe("Tailwind and Subframe theme integration", () => {
|
||||
test("addresses the Subframe white scale by shade in typography rules", () => {
|
||||
const testDir = path.dirname(fileURLToPath(import.meta.url));
|
||||
const config = fs.readFileSync(path.resolve(testDir, "../../../../../tailwind.config.ts"), "utf8");
|
||||
const theme = fs.readFileSync(path.resolve(testDir, "../../ui/theme.css"), "utf8");
|
||||
|
||||
expect(theme).toContain("--color-white-1000:");
|
||||
expect(config).toContain('theme("colors.white.1000")');
|
||||
expect(config).not.toMatch(/theme\(["']colors\.white["']\)/);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user