diff --git a/packages/core-1.0/test/index.test.tsx b/packages/core-1.0/test/index.test.tsx deleted file mode 100644 index f372a75..0000000 --- a/packages/core-1.0/test/index.test.tsx +++ /dev/null @@ -1,51 +0,0 @@ -// import { createRoot, createSignal } from "solid-js" -// import { isServer } from "solid-js/web" -// import { describe, expect, it } from "vitest" -// import { Hello, createHello } from "../src" -// -// describe("environment", () => { -// it("runs on server", () => { -// expect(typeof window).toBe("object") -// expect(isServer).toBe(false) -// }) -// }) -// -// describe("createHello", () => { -// it("Returns a Hello World signal", () => -// createRoot(dispose => { -// const [hello] = createHello() -// expect(hello()).toBe("Hello World!") -// dispose() -// })) -// -// it("Changes the hello target", () => -// createRoot(dispose => { -// const [hello, setHello] = createHello() -// setHello("Solid") -// expect(hello()).toBe("Hello Solid!") -// dispose() -// })) -// }) -// -// describe("Hello", () => { -// it("renders a hello component", () => { -// createRoot(() => { -// const container = () as HTMLDivElement -// expect(container.outerHTML).toBe("
Hello World!
") -// }) -// }) -// -// it("changes the hello target", () => -// createRoot(dispose => { -// const [to, setTo] = createSignal("Solid") -// const container = () as HTMLDivElement -// expect(container.outerHTML).toBe("
Hello Solid!
") -// setTo("Tests") -// -// // rendering is async -// queueMicrotask(() => { -// expect(container.outerHTML).toBe("
Hello Tests!
") -// dispose() -// }) -// })) -// }) diff --git a/packages/core-1.0/test/server.test.tsx b/packages/core-1.0/test/server.test.tsx deleted file mode 100644 index 183e852..0000000 --- a/packages/core-1.0/test/server.test.tsx +++ /dev/null @@ -1,30 +0,0 @@ -// import { describe, expect, it } from "vitest" -// import { isServer, renderToString } from "solid-js/web" -// import { Hello, createHello } from "../src" -// -// describe("environment", () => { -// it("runs on server", () => { -// expect(typeof window).toBe("undefined") -// expect(isServer).toBe(true) -// }) -// }) -// -// describe("createHello", () => { -// it("Returns a Hello World signal", () => { -// const [hello] = createHello() -// expect(hello()).toBe("Hello World!") -// }) -// -// it("Changes the hello target", () => { -// const [hello, setHello] = createHello() -// setHello("Solid") -// expect(hello()).toBe("Hello Solid!") -// }) -// }) -// -// describe("Hello", () => { -// it("renders a hello component", () => { -// const string = renderToString(() => ) -// expect(string).toBe("
Hello World!
") -// }) -// }) diff --git a/packages/core-2.0/test/index.test.tsx b/packages/core-2.0/test/index.test.tsx deleted file mode 100644 index f372a75..0000000 --- a/packages/core-2.0/test/index.test.tsx +++ /dev/null @@ -1,51 +0,0 @@ -// import { createRoot, createSignal } from "solid-js" -// import { isServer } from "solid-js/web" -// import { describe, expect, it } from "vitest" -// import { Hello, createHello } from "../src" -// -// describe("environment", () => { -// it("runs on server", () => { -// expect(typeof window).toBe("object") -// expect(isServer).toBe(false) -// }) -// }) -// -// describe("createHello", () => { -// it("Returns a Hello World signal", () => -// createRoot(dispose => { -// const [hello] = createHello() -// expect(hello()).toBe("Hello World!") -// dispose() -// })) -// -// it("Changes the hello target", () => -// createRoot(dispose => { -// const [hello, setHello] = createHello() -// setHello("Solid") -// expect(hello()).toBe("Hello Solid!") -// dispose() -// })) -// }) -// -// describe("Hello", () => { -// it("renders a hello component", () => { -// createRoot(() => { -// const container = () as HTMLDivElement -// expect(container.outerHTML).toBe("
Hello World!
") -// }) -// }) -// -// it("changes the hello target", () => -// createRoot(dispose => { -// const [to, setTo] = createSignal("Solid") -// const container = () as HTMLDivElement -// expect(container.outerHTML).toBe("
Hello Solid!
") -// setTo("Tests") -// -// // rendering is async -// queueMicrotask(() => { -// expect(container.outerHTML).toBe("
Hello Tests!
") -// dispose() -// }) -// })) -// }) diff --git a/packages/core-2.0/test/server.test.tsx b/packages/core-2.0/test/server.test.tsx deleted file mode 100644 index 183e852..0000000 --- a/packages/core-2.0/test/server.test.tsx +++ /dev/null @@ -1,30 +0,0 @@ -// import { describe, expect, it } from "vitest" -// import { isServer, renderToString } from "solid-js/web" -// import { Hello, createHello } from "../src" -// -// describe("environment", () => { -// it("runs on server", () => { -// expect(typeof window).toBe("undefined") -// expect(isServer).toBe(true) -// }) -// }) -// -// describe("createHello", () => { -// it("Returns a Hello World signal", () => { -// const [hello] = createHello() -// expect(hello()).toBe("Hello World!") -// }) -// -// it("Changes the hello target", () => { -// const [hello, setHello] = createHello() -// setHello("Solid") -// expect(hello()).toBe("Hello Solid!") -// }) -// }) -// -// describe("Hello", () => { -// it("renders a hello component", () => { -// const string = renderToString(() => ) -// expect(string).toBe("
Hello World!
") -// }) -// }) diff --git a/packages/solid-1.0/test/index.test.tsx b/packages/solid-1.0/test/index.test.tsx deleted file mode 100644 index f372a75..0000000 --- a/packages/solid-1.0/test/index.test.tsx +++ /dev/null @@ -1,51 +0,0 @@ -// import { createRoot, createSignal } from "solid-js" -// import { isServer } from "solid-js/web" -// import { describe, expect, it } from "vitest" -// import { Hello, createHello } from "../src" -// -// describe("environment", () => { -// it("runs on server", () => { -// expect(typeof window).toBe("object") -// expect(isServer).toBe(false) -// }) -// }) -// -// describe("createHello", () => { -// it("Returns a Hello World signal", () => -// createRoot(dispose => { -// const [hello] = createHello() -// expect(hello()).toBe("Hello World!") -// dispose() -// })) -// -// it("Changes the hello target", () => -// createRoot(dispose => { -// const [hello, setHello] = createHello() -// setHello("Solid") -// expect(hello()).toBe("Hello Solid!") -// dispose() -// })) -// }) -// -// describe("Hello", () => { -// it("renders a hello component", () => { -// createRoot(() => { -// const container = () as HTMLDivElement -// expect(container.outerHTML).toBe("
Hello World!
") -// }) -// }) -// -// it("changes the hello target", () => -// createRoot(dispose => { -// const [to, setTo] = createSignal("Solid") -// const container = () as HTMLDivElement -// expect(container.outerHTML).toBe("
Hello Solid!
") -// setTo("Tests") -// -// // rendering is async -// queueMicrotask(() => { -// expect(container.outerHTML).toBe("
Hello Tests!
") -// dispose() -// }) -// })) -// }) diff --git a/packages/solid-1.0/test/server.test.tsx b/packages/solid-1.0/test/server.test.tsx deleted file mode 100644 index 183e852..0000000 --- a/packages/solid-1.0/test/server.test.tsx +++ /dev/null @@ -1,30 +0,0 @@ -// import { describe, expect, it } from "vitest" -// import { isServer, renderToString } from "solid-js/web" -// import { Hello, createHello } from "../src" -// -// describe("environment", () => { -// it("runs on server", () => { -// expect(typeof window).toBe("undefined") -// expect(isServer).toBe(true) -// }) -// }) -// -// describe("createHello", () => { -// it("Returns a Hello World signal", () => { -// const [hello] = createHello() -// expect(hello()).toBe("Hello World!") -// }) -// -// it("Changes the hello target", () => { -// const [hello, setHello] = createHello() -// setHello("Solid") -// expect(hello()).toBe("Hello Solid!") -// }) -// }) -// -// describe("Hello", () => { -// it("renders a hello component", () => { -// const string = renderToString(() => ) -// expect(string).toBe("
Hello World!
") -// }) -// }) diff --git a/packages/solid-2.0/test/index.test.tsx b/packages/solid-2.0/test/index.test.tsx deleted file mode 100644 index f372a75..0000000 --- a/packages/solid-2.0/test/index.test.tsx +++ /dev/null @@ -1,51 +0,0 @@ -// import { createRoot, createSignal } from "solid-js" -// import { isServer } from "solid-js/web" -// import { describe, expect, it } from "vitest" -// import { Hello, createHello } from "../src" -// -// describe("environment", () => { -// it("runs on server", () => { -// expect(typeof window).toBe("object") -// expect(isServer).toBe(false) -// }) -// }) -// -// describe("createHello", () => { -// it("Returns a Hello World signal", () => -// createRoot(dispose => { -// const [hello] = createHello() -// expect(hello()).toBe("Hello World!") -// dispose() -// })) -// -// it("Changes the hello target", () => -// createRoot(dispose => { -// const [hello, setHello] = createHello() -// setHello("Solid") -// expect(hello()).toBe("Hello Solid!") -// dispose() -// })) -// }) -// -// describe("Hello", () => { -// it("renders a hello component", () => { -// createRoot(() => { -// const container = () as HTMLDivElement -// expect(container.outerHTML).toBe("
Hello World!
") -// }) -// }) -// -// it("changes the hello target", () => -// createRoot(dispose => { -// const [to, setTo] = createSignal("Solid") -// const container = () as HTMLDivElement -// expect(container.outerHTML).toBe("
Hello Solid!
") -// setTo("Tests") -// -// // rendering is async -// queueMicrotask(() => { -// expect(container.outerHTML).toBe("
Hello Tests!
") -// dispose() -// }) -// })) -// }) diff --git a/packages/solid-2.0/test/server.test.tsx b/packages/solid-2.0/test/server.test.tsx deleted file mode 100644 index 183e852..0000000 --- a/packages/solid-2.0/test/server.test.tsx +++ /dev/null @@ -1,30 +0,0 @@ -// import { describe, expect, it } from "vitest" -// import { isServer, renderToString } from "solid-js/web" -// import { Hello, createHello } from "../src" -// -// describe("environment", () => { -// it("runs on server", () => { -// expect(typeof window).toBe("undefined") -// expect(isServer).toBe(true) -// }) -// }) -// -// describe("createHello", () => { -// it("Returns a Hello World signal", () => { -// const [hello] = createHello() -// expect(hello()).toBe("Hello World!") -// }) -// -// it("Changes the hello target", () => { -// const [hello, setHello] = createHello() -// setHello("Solid") -// expect(hello()).toBe("Hello Solid!") -// }) -// }) -// -// describe("Hello", () => { -// it("renders a hello component", () => { -// const string = renderToString(() => ) -// expect(string).toBe("
Hello World!
") -// }) -// })