Skip to content

Commit

Permalink
#8 Add jest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
raeperd committed Jan 9, 2022
1 parent de9a720 commit 0d69454
Show file tree
Hide file tree
Showing 4 changed files with 13,916 additions and 6,853 deletions.
12 changes: 12 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// jest.config.js
// eslint-disable-next-line @typescript-eslint/no-var-requires
const nextJest = require('next/jest')

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

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

module.exports = createJestConfig(customJestConfig)
Empty file removed lib/post.ts
Empty file.
Loading

0 comments on commit 0d69454

Please sign in to comment.