Skip to content

Commit

Permalink
Set up automated logic testing.
Browse files Browse the repository at this point in the history
There's a LOT to keep up with. Best verify these are coded right.
  • Loading branch information
wolfman2000 committed Mar 29, 2024
1 parent aaa4142 commit 51eef5a
Show file tree
Hide file tree
Showing 6 changed files with 8,284 additions and 3,389 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/npm-validate-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ jobs:
run: npm ci
- name: Building the project
run: npm run build
- name: Verify the logic
run: npm run test
12 changes: 12 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */

module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
moduleNameMapper: {
'^@renderer/(.*)': '<rootDir>/src/renderer/src/$1'
},
transform: {
'^.+\\.(ts|tsx)$': [`ts-jest`, { tsconfig: 'tsconfig.web.json' }]
}
}
Loading

0 comments on commit 51eef5a

Please sign in to comment.