├── .eslintrc.json ├── .github ├── dependabot.yml └── workflows │ ├── auto-merge.yml │ └── test.yml ├── .gitignore ├── README.md ├── globalConfig.json ├── jest-mongodb-config.js ├── jest.config.js ├── jest.frontend.config.js ├── jest.server.config.js ├── jest.server.setup.js ├── jest.setup.js ├── next-env.d.ts ├── next.config.js ├── package.json ├── public ├── favicon.ico └── vercel.svg ├── src ├── __tests__ │ ├── hello.server.tsx │ └── index.spec.tsx ├── mongodb.ts └── pages │ ├── _app.tsx │ ├── api │ └── hello.ts │ └── index.tsx ├── styles ├── Home.module.css └── globals.css ├── test ├── clearDbAndRestartCounters.ts ├── connectMongoose.ts ├── createMockRouter.tsx ├── debugConsole.ts ├── disconnectMongoose.ts ├── setupFiles.js ├── testClient.tsx └── withProviders.tsx ├── tsconfig.json └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/auto-merge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/.github/workflows/auto-merge.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/README.md -------------------------------------------------------------------------------- /globalConfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/globalConfig.json -------------------------------------------------------------------------------- /jest-mongodb-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/jest-mongodb-config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/jest.config.js -------------------------------------------------------------------------------- /jest.frontend.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/jest.frontend.config.js -------------------------------------------------------------------------------- /jest.server.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/jest.server.config.js -------------------------------------------------------------------------------- /jest.server.setup.js: -------------------------------------------------------------------------------- 1 | require('jest-fetch-mock').enableMocks(); -------------------------------------------------------------------------------- /jest.setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/jest.setup.js -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/package.json -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/__tests__/hello.server.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/src/__tests__/hello.server.tsx -------------------------------------------------------------------------------- /src/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/src/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/mongodb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/src/mongodb.ts -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/api/hello.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/src/pages/api/hello.ts -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /styles/Home.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/styles/Home.module.css -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/styles/globals.css -------------------------------------------------------------------------------- /test/clearDbAndRestartCounters.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/test/clearDbAndRestartCounters.ts -------------------------------------------------------------------------------- /test/connectMongoose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/test/connectMongoose.ts -------------------------------------------------------------------------------- /test/createMockRouter.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/test/createMockRouter.tsx -------------------------------------------------------------------------------- /test/debugConsole.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/test/debugConsole.ts -------------------------------------------------------------------------------- /test/disconnectMongoose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/test/disconnectMongoose.ts -------------------------------------------------------------------------------- /test/setupFiles.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/testClient.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/test/testClient.tsx -------------------------------------------------------------------------------- /test/withProviders.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/test/withProviders.tsx -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sibelius/next-jest-multiproject/HEAD/yarn.lock --------------------------------------------------------------------------------