Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #494 from WebDevStudios/feature/493-integrate-jest…
Browse files Browse the repository at this point in the history
…-and-cypress

Feature/493 Scaffold Jest
  • Loading branch information
Greg Rickaby authored Jun 3, 2021
2 parents 7767d49 + 6f7d718 commit 27dcaed
Show file tree
Hide file tree
Showing 7 changed files with 13,199 additions and 35,151 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["next/babel"]
}
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ module.exports = {
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'prettier',
'plugin:jsdoc/recommended'
'plugin:jsdoc/recommended',
'plugin:jest/recommended'
],
settings: {
react: {
Expand Down
11 changes: 11 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
moduleNameMapper: {
'\\.(scss|css)$': 'identity-obj-proxy',
'^@/components(.*)$': '<rootDir>/components$1',
'^@/functions(.*)$': '<rootDir>/functions$1'
},
testMatch: ['**/tests/jest/**/*.js?(x)'],
testEnvironment: 'jsdom'
}
1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom'
Loading

1 comment on commit 27dcaed

@vercel
Copy link

@vercel vercel bot commented on 27dcaed Jun 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.