forked from Uniswap/uniswapx-parameterization-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
21 lines (20 loc) · 798 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
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,
testTimeout: 10000,
testEnvironment: 'node',
testPathIgnorePatterns: ['bin', 'dist'],
collectCoverageFrom: ['**/*.ts', '!**/build/**', '!**/node_modules/**', '!**/dist/**', '!**/bin/**'],
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',
},
};