gitmoji/packages/website/jest.config.js
Carlos Cuesta f23d0977e6
♻️ Migrate website to TypeScript (#1244)
* 🔧 Add typescript configuration files
*  Install typescript dependencies
* ♻️ Migrate `lint-staged` to .ts(x) files
* ♻️ Migrate `eslint` configuration to TypeScript
* ♻️ Migrate `jest` configuration to TypeScript
* 🔥 Remove `babel` configuration
*  Uninstall flow dependencies
* 🔥 Remove `flow` configuration
* 👷 Run `tsc` in `ci` workflow
* 🔧 Update `pre-push` hook
* ♻️ Migrate `pages/api` to TS
* ♻️ Migrate `pages/_app` to TS
* ♻️ Migrate `pages/_document` to TS
* ♻️ Migrate `pages/about` to TS
* ♻️ Migrate `pages/contributors` to TS
* ♻️ Migrate `pages/index` to TS
* ♻️ Migrate `pages/related-tools` to TS
* ♻️ Migrate `components/Button` to TS
* ♻️ Migrate `components/CarbonAd` to TS
* ♻️ Migrate `components/ContributorsList` to TS
* ♻️ Migrate `components/Icon` to TS
* ♻️ Migrate `components/SEO` to TS
* ♻️ Migrate `components/Layout` to TS
* ♻️ Migrate `components/GitmojiList` to TS
* ♻️ Migrate `__tests__/` pages to TS
* 🏷️ Update `next-env.d.ts`
2022-12-28 16:27:23 +01:00

21 lines
388 B
JavaScript

const nextJest = require('next/jest')
const createJestConfig = nextJest({
dir: './'
})
/** @type {import('jest').Config} */
module.exports = createJestConfig({
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
],
"testMatch": [
"**/*.(spec).(ts)",
"**/*.(spec).(tsx)"
],
"moduleNameMapper": {
"src/(.*)$": "<rootDir>/src/$1"
},
"testEnvironment": "jsdom"
})