Skip to content

Commit

Permalink
Merge pull request #6 from DerianCordobaPerez/feature-creation-jest-t…
Browse files Browse the repository at this point in the history
…ests

Feature creation jest tests
  • Loading branch information
DerianCordobaPerez authored Apr 10, 2022
2 parents 3759141 + 22b4178 commit 4080c1b
Show file tree
Hide file tree
Showing 5 changed files with 12,235 additions and 6 deletions.
7 changes: 2 additions & 5 deletions web/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# testing
/coverage
**/__snapshots__/**

# next.js
/.next/
Expand All @@ -29,8 +30,4 @@ yarn-error.log*
.env*.local

# vercel
.vercel

# Locks files
package-lock.json
yarn.lock
.vercel
12 changes: 12 additions & 0 deletions web/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const nextJest = require('next/jest')

const createJestConfig = nextJest({
dir: './'
})

const customJestConfig = {
moduleDirectories: ['node_modules', '<rootDir>/'],
testEnvironment: 'jest-environment-jsdom'
}

module.exports = createJestConfig(customJestConfig)
Loading

0 comments on commit 4080c1b

Please sign in to comment.