Skip to content

Commit

Permalink
refactor: split tests into jest projects
Browse files Browse the repository at this point in the history
- run unit tests in jsdom and node environments
- except webhook tests

Co-authored-by: Jakob Hellermann <[email protected]>
Co-authored-by: Robert Deppe <[email protected]>
  • Loading branch information
3 people committed Aug 28, 2020
1 parent 56c19ae commit d377200
Show file tree
Hide file tree
Showing 5 changed files with 2,815 additions and 747 deletions.
24 changes: 22 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
module.exports = {
preset: 'ts-jest',
roots: ['./'],
projects: [
{
preset: 'ts-jest',
roots: ['./lib'],
displayName: 'dom',
testEnvironment: 'jsdom',
testMatch: ['**/*.test?(.browser).ts'],
},
{
preset: 'ts-jest',
roots: ['./lib'],
displayName: 'node',
testEnvironment: 'node',
testMatch: ['**/*.test?(.node).ts'],
},
{
roots: ['./bundle'],
displayName: 'bundle',
testEnvironment: 'jsdom',
testMatch: ['**/*.test.js'],
},
],
};
File renamed without changes.
Loading

0 comments on commit d377200

Please sign in to comment.