Skip to content

Commit

Permalink
Setting up testing config files
Browse files Browse the repository at this point in the history
Relates #80
  • Loading branch information
Feargh committed Jun 25, 2024
1 parent 333c054 commit 5734829
Show file tree
Hide file tree
Showing 6 changed files with 9,665 additions and 4,414 deletions.
7 changes: 7 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-react',
'@babel/preset-typescript',
],
};
13 changes: 13 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default {
preset: 'ts-jest',
testEnvironment: 'jest-environment-jsdom',
transform: {
'^.+\\.tsx?$': 'ts-jest',
// process `*.tsx` files with `ts-jest`
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleNameMapper: {
'\\.(gif|ttf|eot|svg|png)$': '<rootDir>/test/__ mocks __/fileMock.js',
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
},
};
Loading

0 comments on commit 5734829

Please sign in to comment.