-
Notifications
You must be signed in to change notification settings - Fork 417
Expand file tree
/
Copy pathapp.test.tsx
More file actions
27 lines (24 loc) · 804 Bytes
/
app.test.tsx
File metadata and controls
27 lines (24 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { describe } from "vitest";
// const serverLogs: any[] = [];
// const originalConsoleLog = console.log;
/**
* @debt This test is comment out because of an issue with testing-library `render()` and
* vinxi/routes magical export for fileRoutes inside `@solidjs/start` package.
*/
describe.skip("<App />", () => {
// beforeEach(() => {
// serverLogs.length = 0;
// console.log = (...args: any[]) => {
// serverLogs.push(args);
// originalConsoleLog(...args);
// };
// });
// afterEach(() => {
// console.log = originalConsoleLog;
// });
// it("increments value", async () => {
// render(() => <App />);
// expect(serverLogs).toContainEqual(["Server Function", true]);
// expect(serverLogs).toContainEqual(["App Component", true]);
// });
});