Files
next.js/examples/with-zones/home/jest.config.js
70a023b631 [Multi Zones] Update the with-zones example to use App Router (#67636)
This pull request updates the `with-zones` example to demonstrate how to
use zones with App Router.

---------

Co-authored-by: Delba de Oliveira <[email protected]>
2024-07-12 07:04:11 +01:00

16 lines
505 B
JavaScript

const nextJest = require("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 = {
testEnvironment: "jsdom",
testMatch: ["./**/*.test.{ts,tsx}"],
};
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
module.exports = createJestConfig(customJestConfig);