Skip to content

Commit

Permalink
Removing ts-jest dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
armfazh committed May 19, 2022
1 parent 1eaf559 commit 800f4d9
Show file tree
Hide file tree
Showing 6 changed files with 2,670 additions and 2,856 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/node_modules
/dist
/lib
/coverage
18 changes: 0 additions & 18 deletions jest.config.js

This file was deleted.

12 changes: 12 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default {
moduleFileExtensions: ['js'],
transform: {},
setupFiles: ['./jest.setup.mjs'],
moduleNameMapper: {
'^@root/(.*)': '<rootDir>/$1',
'^@public/(.*)': '<rootDir>/public/$1',
'^@popup/(.*)': '<rootDir>/src/popup/$1',
},
collectCoverage: true,
verbose: true,
};
2 changes: 1 addition & 1 deletion jest.setup.ts → jest.setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
import { webcrypto } from 'crypto';

if (typeof crypto === 'undefined') {
global.crypto = (webcrypto as unknown) as Crypto
global.crypto = webcrypto;
}
Loading

0 comments on commit 800f4d9

Please sign in to comment.