mirror of
https://github.com/carloscuesta/gitmoji.git
synced 2025-12-08 20:14:12 +00:00
* 🔧 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`
21 lines
388 B
JavaScript
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"
|
|
})
|