fix(web): use extensionless import for App in test
The `.tsx` extension in the import path is not allowed without `allowImportingTsExtensions` (TS5097). Use extensionless `../App` which resolves correctly via moduleResolution: "bundler". Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { describe, it, expect, vi, beforeEach } from "vitest";
|
import { describe, it, expect, vi, beforeEach } from "vitest";
|
||||||
import { render, screen, within, waitFor } from "@testing-library/react";
|
import { render, screen, within, waitFor } from "@testing-library/react";
|
||||||
import { MemoryRouter } from "react-router-dom";
|
import { MemoryRouter } from "react-router-dom";
|
||||||
import { App } from "../App.tsx";
|
import { App } from "../App";
|
||||||
|
|
||||||
|
|
||||||
// Mock fetch to return appropriate responses based on URL
|
// Mock fetch to return appropriate responses based on URL
|
||||||
|
|||||||
Reference in New Issue
Block a user