Skip to content

Commit

Permalink
add-unit-test-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
MashaMoreva committed Sep 30, 2023
1 parent 88aa3eb commit 5f65cda
Show file tree
Hide file tree
Showing 6 changed files with 6,514 additions and 1,453 deletions.
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [['@babel/preset-env', { targets: { node: 'current' } }]],
};
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
transform: {
'\\.js': 'babel-jest',
},
testEnvironment: 'jsdom',
moduleNameMapper: {
'\\.(css|less|scss)$': 'identity-obj-proxy',
'\\.(jpg|jpeg|png|gif|webp|svg)$': 'jest-transform-stub',
},
};
Loading

0 comments on commit 5f65cda

Please sign in to comment.