xonecas.io
4828
Sr

stream-together / files

stream-together / jest.config.js

517 bytes
1const nextJest = require("next/jest");
2
3const createJestConfig = nextJest({
4  // Provide the path to your Next.js app to load next.config.js and .env files in your test environment
5  dir: "./",
6});
7
8// Add any custom config to be passed to Jest
9const customJestConfig = {
10  setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
11  testEnvironment: "jsdom",
12};
13
14// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
15module.exports = createJestConfig(customJestConfig);