mirror of
https://github.com/carloscuesta/gitmoji.git
synced 2025-12-08 20:14:12 +00:00
* ⬆️ Bump @vercel/analytics from 0.1.8 to 0.1.10 Bumps @vercel/analytics from 0.1.8 to 0.1.10. --- updated-dependencies: - dependency-name: "@vercel/analytics" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * 🔧 Avoid transforming `@vercel/analytics` --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Cuesta <carloscuesta@me.com>
32 lines
758 B
JavaScript
32 lines
758 B
JavaScript
const nextJest = require('next/jest')
|
|
|
|
const createJestConfig = nextJest({ dir: './' })
|
|
|
|
async function jestConfig() {
|
|
const nextJestConfig = await createJestConfig({
|
|
"collectCoverageFrom": [
|
|
"src/**/*.{ts,tsx}",
|
|
],
|
|
"testMatch": [
|
|
"**/*.(spec).(ts)",
|
|
"**/*.(spec).(tsx)"
|
|
],
|
|
"moduleNameMapper": {
|
|
"src/(.*)$": "<rootDir>/src/$1"
|
|
},
|
|
"testEnvironment": "jsdom",
|
|
"reporters": [
|
|
"default",
|
|
"github-actions"
|
|
]
|
|
})()
|
|
|
|
// Add ignores for specific ESM packages so they are transformed by Jest
|
|
// See: https://github.com/vercel/next.js/issues/35634
|
|
nextJestConfig.transformIgnorePatterns[0] = '/node_modules/(!@vercel/analytics)/'
|
|
|
|
return nextJestConfig
|
|
}
|
|
|
|
module.exports = jestConfig
|