Skip to content

Commit

Permalink
Add ts-jest and Grid tests
Browse files Browse the repository at this point in the history
- mostly for practice with jest
- but also if I add new Grid features I can use this in development
  • Loading branch information
ghbuck committed Dec 13, 2024
1 parent e69a8a3 commit 2e69102
Show file tree
Hide file tree
Showing 8 changed files with 5,375 additions and 1,346 deletions.
8 changes: 7 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ export default tseslint.config(
},
},
{
ignores: ['eslint.config.mjs', 'prettier.config.mjs', 'lint-staged.config.mjs', 'src/utils/template/index.ts']
ignores: [
'eslint.config.mjs',
'lint-staged.config.mjs',
'jest.config.mjs',
'prettier.config.mjs',
'src/utils/template/index.ts'
]
},
eslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
Expand Down
14 changes: 14 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { createDefaultEsmPreset } from 'ts-jest';

/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
...createDefaultEsmPreset(),
testEnvironment: "node",
transform: {
"^.+.tsx?$": ["ts-jest",{}],
},
moduleNameMapper: {
"^utils/(.*)$": "<rootDir>/src/utils/$1",
},
resolver: "ts-jest-resolver",
};
Loading

0 comments on commit 2e69102

Please sign in to comment.