forked from Uniswap/uniswapx-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
27 lines (26 loc) · 812 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
23
24
25
26
27
const ts_preset = require('ts-jest/jest-preset')
const dynamo_preset = require('@shelf/jest-dynamodb/jest-preset')
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
...ts_preset,
...dynamo_preset,
testEnvironment: 'node',
testPathIgnorePatterns: ['bin/', 'dist/', 'cdk.out/'],
coverageThreshold: {
global: {
statements: 80,
branches: 78,
functions: 80,
lines: 80,
},
},
transform: {
// Use swc to speed up ts-jest's sluggish compilation times.
// Using this cuts the initial time to compile from 6-12 seconds to
// ~1 second consistently.
// Inspiration from: https://github.com/kulshekhar/ts-jest/issues/259#issuecomment-1332269911
//
// https://swc.rs/docs/usage/jest#usage
'^.+\\.(t|j)s?$': '@swc/jest',
},
}