Skip to content

Commit

Permalink
feat: add Jest testing framework and initial test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
provos committed Dec 15, 2024
1 parent 9e9640c commit 028afb9
Show file tree
Hide file tree
Showing 5 changed files with 4,446 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
testEnvironment: 'jsdom',
roots: ['<rootDir>/tests/planai/js'],
moduleDirectories: ['node_modules', 'static/js'],
setupFilesAfterEnv: ['<rootDir>/tests/planai/js/setup.js'],
transform: {},
testMatch: [
"**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[tj]s?(x)",
"**/?(*.)+(spec|test).cjs"
]
};
Loading

0 comments on commit 028afb9

Please sign in to comment.