Skip to content

Commit

Permalink
add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nefelitav committed Feb 15, 2024
1 parent 5c3aca2 commit 836bfb4
Show file tree
Hide file tree
Showing 9 changed files with 9,063 additions and 2,129 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ jobs:
with:
node-version: 20
- run: npm install
- run: npm run lint
- run: npm run lint
- run: npm run test
12 changes: 12 additions & 0 deletions babel.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
presets: [
// Add other presets if needed
'@babel/preset-typescript',
['@babel/preset-env', {targets: {node: 'current'}}]
],
plugins: [
// Add other plugins if needed
'@babel/plugin-syntax-jsx'
]
};

11 changes: 11 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default {
preset: 'ts-jest',
testEnvironment: 'jest-environment-jsdom',
transform: {
"^.+\\.tsx?$": "ts-jest"
},
moduleNameMapper: {
'\\.(gif|ttf|eot|svg|png)$': '<rootDir>/test/__ mocks __/fileMock.js',
"\\.(css|less|sass|scss)$": "<rootDir>/src/__tests__/__mocks__/index.css"
},
}
Loading

0 comments on commit 836bfb4

Please sign in to comment.