From 315038db327ee9356589146498606a62241e9a46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Westk=C3=A4mper?= Date: Thu, 15 Aug 2024 11:39:04 +0300 Subject: [PATCH] Fix tsc errors --- spec/nosto.load.spec.tsx | 4 ++-- spec/setup.js | 1 - tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/nosto.load.spec.tsx b/spec/nosto.load.spec.tsx index 6355a4b..91617a8 100644 --- a/spec/nosto.load.spec.tsx +++ b/spec/nosto.load.spec.tsx @@ -1,6 +1,6 @@ -import React from "react" -import { vi, describe, expect, it } from "vitest" +import { describe, expect, it } from "vitest" import { render } from "@testing-library/react" +import "@testing-library/jest-dom/vitest" import { NostoProvider, NostoHome } from "../src/index" describe("Nosto client script loading", () => { diff --git a/spec/setup.js b/spec/setup.js index 4b515ea..72ff065 100644 --- a/spec/setup.js +++ b/spec/setup.js @@ -1,4 +1,3 @@ -import "@testing-library/jest-dom/vitest" import { JSDOM } from "jsdom" import { afterEach } from "vitest" diff --git a/tsconfig.json b/tsconfig.json index a37309b..eef3b0d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,6 @@ "noEmit": true, "jsx": "react-jsx" }, - "include": ["src"], + "include": ["src", "spec"], "references": [{ "path": "./tsconfig.node.json" }] }