-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest-bench.config.ts
More file actions
31 lines (31 loc) · 739 Bytes
/
jest-bench.config.ts
File metadata and controls
31 lines (31 loc) · 739 Bytes
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
28
29
30
31
export default {
displayName: 'benchmarks',
testEnvironment: 'node',
reporters: ['default'],
testMatch: ['<rootDir>/packages/**/benchmarks/**/*.bench.ts'],
transform: {
'^.+\\.[tj]s$': [
'@swc/jest',
{
swcrc: false,
jsc: {
parser: {
syntax: 'typescript',
decorators: true,
},
target: 'es2022',
transform: {
decoratorMetadata: true,
},
},
sourceMaps: 'inline',
module: {
type: 'commonjs',
},
},
],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: './coverage/benchmarks',
transformIgnorePatterns: ['node_modules/(?!(tinybench)/)'],
};