forked from BoltzExchange/boltz-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
22 lines (22 loc) · 899 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
preset: "solid-jest/preset/browser",
setupFilesAfterEnv: ["<rootDir>/node_modules/@testing-library/jest-dom"],
transformIgnorePatterns: [
"node_modules/(?!@solidjs|solid-icons|boltz-bolt12|seroval-plugins)",
],
moduleNameMapper: {
"^.+\\.svg": "<rootDir>/tests/mocks/SvgMock.tsx",
"^.+\\.css": "<rootDir>/tests/mocks/StylesMock.tsx",
"^.+\\.scss": "<rootDir>/tests/mocks/StylesMock.tsx",
"boltz-bolt12": "<rootDir>/tests/mocks/bolt12.ts",
"@ledgerhq/hw-app-eth": "<rootDir>/tests/mocks/LedgerMock.ts",
"@ledgerhq/hw-transport-webhid": "<rootDir>/tests/mocks/LedgerMock.ts",
"@trezor/connect-web": "<rootDir>/tests/mocks/TrezorMock.ts",
},
globals: {
Buffer: Buffer,
Uint8Array: Uint8Array,
ArrayBuffer: ArrayBuffer,
},
setupFiles: ["./tests/setup.ts"],
};