Skip to content

Commit

Permalink
chore: remove comments in config files
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcasstlesjones committed Dec 2, 2024
1 parent c06d3d8 commit e165021
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 0 additions & 2 deletions __tests__/Moods.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { render, screen } from "@testing-library/react";
import MoodsPage from "@/app/moods/page";
// import { useContext } from "react";
// import { NeurochemContext } from "@/context/NeurochemContext";

// Mock the child components
jest.mock("@/app/moods/components/Cube", () => ({
Expand Down
8 changes: 1 addition & 7 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,17 @@ import type { Config } from "jest";
import nextJest from "next/jest.js";

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 config: Config = {
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],

coverageProvider: "v8",
testEnvironment: "jsdom",
// Add more setup options before each test is run
// setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
moduleNameMapper: {
// ...
"^@/(.*)$": "<rootDir>/src/$1", // Matches the src alias
"^@/(.*)$": "<rootDir>/src/$1",
},
};

// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
export default createJestConfig(config);
1 change: 0 additions & 1 deletion jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/// <reference types="@types/jest" />
import "@testing-library/jest-dom";

0 comments on commit e165021

Please sign in to comment.