Skip to content

Commit

Permalink
chore: 🤖 updated to address single require buinsess (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loonz206 authored Oct 5, 2024
1 parent 81d5b09 commit 7f1ac74
Show file tree
Hide file tree
Showing 3 changed files with 297 additions and 32 deletions.
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
// jest.config.js
// eslint-disable-next-line @typescript-eslint/no-require-imports
const nextJest = require("next/jest");

const createJestConfig = nextJest({
Expand Down Expand Up @@ -140,7 +141,9 @@ const customJestConfig = {
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
// timers: "real",
// A map from regular expressions to paths to transformers
// transform: undefined,
transform: {
"^.+\\.(t|j)sx?$": "@swc/jest",
},
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
// "/node_modules/",
Expand Down
Loading

0 comments on commit 7f1ac74

Please sign in to comment.