Skip to content

Commit

Permalink
config jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor committed Sep 17, 2024
1 parent b670d3b commit 138d4ca
Show file tree
Hide file tree
Showing 7 changed files with 791 additions and 45 deletions.
15 changes: 15 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"presets": [
["@babel/preset-env", { "targets": { "node": "current" } }],

"@babel/preset-react",

[
"babel-preset-vite",
{
"env": true,
"glob": false
}
]
]
}
File renamed without changes.
5 changes: 5 additions & 0 deletions config-overrides/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "config-overrides",
"main": "index.js",
"type": "commonjs"
}
9 changes: 9 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default {
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
testEnvironment: 'jest-environment-jsdom',
transform: {
'^.+\\.[t|j]sx?$': 'babel-jest',
},
};
Loading

0 comments on commit 138d4ca

Please sign in to comment.