diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-09-25 15:24:06 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-10-24 12:23:48 +0200 |
| commit | a22214f2a2efcdac2666e1aad3332cb49d2f2198 (patch) | |
| tree | a1f9c6a20ca5d5fa81c998b8a53974be310a0d02 /jest.config.js | |
| parent | a6ff5eee45215effb3344cb5d631a27a7c0369aa (diff) | |
build: convert project to esm
Diffstat (limited to 'jest.config.js')
| -rw-r--r-- | jest.config.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/jest.config.js b/jest.config.js index e31f939..77cabb1 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,16 +1,18 @@ -const nextJest = require('next/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 * * For a detailed explanation regarding each configuration property and type * check, visit: * https://jestjs.io/docs/configuration + * + * @type {import('jest').Config} */ const customJestConfig = { // if using TypeScript with a baseUrl set to the root directory then you need the below for alias' to work @@ -33,4 +35,4 @@ const customJestConfig = { * createJestConfig is exported this way to ensure that next/jest can load the * Next.js config which is async. */ -module.exports = createJestConfig(customJestConfig); +export default createJestConfig(customJestConfig); |
