/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
build
/
jest
/
/opt/canhelp/node_modules/next/dist/build/jest
mkdir
upload
Name
Size
Mode
Actions
__mocks__/
-
0755
rm
jest.d.ts
960
0644
edit
dl
rm
jest.js
10351
0644
edit
dl
rm
jest.js.map
11319
0644
edit
dl
rm
object-proxy.d.ts
53
0644
edit
dl
rm
object-proxy.js
1950
0644
edit
dl
rm
object-proxy.js.map
1792
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/next/dist/build/jest/jest.d.ts
(960B)
import type { Config } from '@jest/types'; /** * @example * ```ts * // Usage in jest.config.js * const nextJest = require('next/jest'); * * // Optionally provide path to Next.js app which will enable loading next.config.js and .env files * const createJestConfig = nextJest({ dir }) * * // Any custom config you want to pass to Jest * const customJestConfig = { * setupFilesAfterEnv: ['<rootDir>/jest.setup.js'], * } * * // createJestConfig is exported in this way to ensure that next/jest can load the Next.js config which is async * module.exports = createJestConfig(customJestConfig) * ``` * * Read more: [Next.js Docs: Setting up Jest with Next.js](https://nextjs.org/docs/app/building-your-application/testing/jest) */ export default function nextJest(options?: { dir?: string; }): (customJestConfig?: Config.InitialProjectOptions | (() => Promise<Config.InitialProjectOptions>)) => () => Promise<Config.InitialProjectOptions>;
Save
cmd:
run