Skip to content

Commit

Permalink
Merge pull request #7 from Real-Dev-Squad/4
Browse files Browse the repository at this point in the history
test: setup testing and mock folder
  • Loading branch information
vinayak-trivedi authored Jan 3, 2023
2 parents 72c0fb0 + 89f1dcd commit 05b7930
Show file tree
Hide file tree
Showing 9 changed files with 19,557 additions and 2,046 deletions.
13 changes: 13 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const nextJest = require("next/jest");

const createJestConfig = nextJest({
dir: "./",
});

const customJestConfig = {
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
moduleDirectories: ["node_modules", "<rootDir>/"],
testEnvironment: "jest-environment-jsdom",
};

module.exports = createJestConfig(customJestConfig);
2 changes: 2 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import "@testing-library/jest-dom";
import "./setupTests";
Loading

0 comments on commit 05b7930

Please sign in to comment.