Skip to content

Commit

Permalink
Merge pull request #4 from translate-tools/1-add-tests
Browse files Browse the repository at this point in the history
Add tests
  • Loading branch information
vitonsky authored May 7, 2023
2 parents b98f7ba + d114f4d commit 9272186
Show file tree
Hide file tree
Showing 10 changed files with 35,733 additions and 34,154 deletions.
Empty file modified .husky/commit-msg
100644 → 100755
Empty file.
Empty file modified .husky/pre-commit
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'jest-extended';
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ if (process.env.TEST_FAST) {
}

module.exports = {
testEnvironment: 'node',
testEnvironment: 'jsdom',

preset: 'ts-jest/presets/js-with-ts-esm',
...(Object.keys(jestGlobals).length === 0 ? {} : { globals: jestGlobals }),

resetMocks: true,
setupFiles: ['./scripts/jest/setupFiles/index.js'],
setupFilesAfterEnv: ['jest-extended/all'],
};
Loading

0 comments on commit 9272186

Please sign in to comment.