Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

remove tests

AykutSaracfc77fbcaa147
diff --git a/jest.config.ts b/jest.config.ts
deleted file mode 100644
index 9c0578a5..00000000
--- a/jest.config.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import nextJest from "next/jest";
-
-const createJestConfig = nextJest({
- // Provide the path to your Next.js app to load next.config.js and .env files in your test environment
- dir: "./",
-});
-
-// Add any custom config to be passed to Jest
-const customJestConfig = {
- setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
- testEnvironment: "jsdom",
- moduleDirectories: ["node_modules", "src"],
- modulePaths: ["<rootDir>"],
-};
-
-// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
-module.exports = createJestConfig(customJestConfig);
diff --git a/jest.setup.ts b/jest.setup.ts
deleted file mode 100644
index 80dd160d..00000000
--- a/jest.setup.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// Optional: configure or set up a testing framework before each test.
-// If you delete this file, remove `setupFilesAfterEnv` from `jest.config.js`
-// Used for __tests__/testing-library.js
-// Learn more: https://github.com/testing-library/jest-dom
-import "@testing-library/jest-dom/extend-expect";
diff --git a/package.json b/package.json
index e6b49f1b..1e9c3008 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
"dev": "next dev",
"build": "next build && next export",
"start": "next start",
- "lint": "next lint",
+ "lint": "tsc && next lint",
"lint:fix": "prettier --write \"./**/*.{ts,tsx,json}\"",
"deploy": "gh-pages -d out -t true"
},
diff --git a/src/components/__tests__/Button.test.tsx b/src/components/__tests__/Button.test.tsx
deleted file mode 100644
index 49d7b8ab..00000000
--- a/src/components/__tests__/Button.test.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import React from "react";
-import { screen, render } from "@testing-library/react";
-import { Button } from "src/components/Button";
-
-describe("Button", () => {
- it("should render Button component", () => {
- render(<Button>Click Me!</Button>);
- expect(screen.getByRole("button", { name: /Click Me/ })).toBeInTheDocument();
- });
-});