11 lines
388 B
TypeScript
11 lines
388 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import pkg from "../package.json";
|
|
|
|
describe("package contract", () => {
|
|
it("publishes an explicit stylesheet and preserves CSS side effects", () => {
|
|
expect(pkg.exports["./style.css"]).toBe("./dist/design-system.css");
|
|
expect(pkg.sideEffects).toContain("**/*.css");
|
|
expect(pkg.peerDependencies.vue).toMatch(/^\^3/);
|
|
});
|
|
});
|