Skip to content

Commit

Permalink
Add home test
Browse files Browse the repository at this point in the history
  • Loading branch information
alicemirigo92 committed Jun 27, 2023
1 parent f2375bf commit 5013c99
Show file tree
Hide file tree
Showing 20 changed files with 22,523 additions and 78 deletions.
6 changes: 2 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"presets": [
"@babel/preset-react"
],
"plugins": ["@babel/plugin-syntax-jsx"]
"presets": ["@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-private-property-in-object"]
}
18 changes: 18 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
testEnvironment: 'jest-environment-jsdom',
preset: 'ts-jest/presets/js-with-ts',
transform: {
'\\.[jt]sx?$': 'esbuild-jest',
'^.+\\.jsx?$': 'babel-jest',
},
roots: ['<rootDir>/src'],
transformIgnorePatterns: [
'/node_modules/(?!(foo|bar)/)',
],
extensionsToTreatAsEsm: ['.js'],
setupFiles: ['<rootDir>/jest.setup.js'],
testMatch: ['**/__tests__/**/*.js?(x)', '**/?(*.)+(spec|test).js?(x)'],
moduleNameMapper: {
'^axios$': '<rootDir>/__mocks__/axios.js',
},
};
Loading

0 comments on commit 5013c99

Please sign in to comment.