mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-01 08:34:12 +00:00
Compare commits
1 Commits
shadcn/cod
...
shadcn/fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86479e0a30 |
@@ -10,11 +10,21 @@ import {
|
|||||||
} from "../utils/helpers"
|
} from "../utils/helpers"
|
||||||
import { createRegistryServer } from "../utils/registry"
|
import { createRegistryServer } from "../utils/registry"
|
||||||
|
|
||||||
describe("shadcn init - next-app", () => {
|
describe("shadcn init - next-app", async () => {
|
||||||
it("should init with default configuration", async () => {
|
const registry = await createRegistryServer([], {
|
||||||
// Sleep for 1 second to avoid race condition with the registry server.
|
port: 4000,
|
||||||
await new Promise((resolve) => setTimeout(resolve, 2000))
|
path: "/r",
|
||||||
|
})
|
||||||
|
|
||||||
|
beforeAll(async () => {
|
||||||
|
await registry.start()
|
||||||
|
})
|
||||||
|
|
||||||
|
afterAll(async () => {
|
||||||
|
await registry.stop()
|
||||||
|
})
|
||||||
|
|
||||||
|
it("should init with default configuration", async () => {
|
||||||
const fixturePath = await createFixtureTestDirectory("next-app")
|
const fixturePath = await createFixtureTestDirectory("next-app")
|
||||||
await npxShadcn(fixturePath, ["init", "--defaults"])
|
await npxShadcn(fixturePath, ["init", "--defaults"])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user