-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest.config.js
36 lines (32 loc) · 990 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
28
29
30
31
32
33
34
35
36
/**
* Jest'in yapılandırması package.json
* projenizin jest.config.js dosyasında
* veya bir dosya aracılığıyla
* veya --config <path/to/file.js|cjs|mjs|json>
* seçenek aracılığıyla tanımlanabilir.
* @see https://jestjs.io/docs/en/configuration.html
*/
module.exports = {
/**
* Her test arasındaki sahte çağrıları ve örnekleri otomatik olarak temizler.
*/
clearMocks: true,
/**
* Jest'in kapsama dosyalarını vermesi gereken dizin.
*/
coverageDirectory: 'coverage',
/**
* Test için kullanılacak test ortamı.
*/
testEnvironment: 'node',
/**
* Jest'in test dosyalarını tespit etmek için kullandığı global kalıpları.
*/
testMatch: ['<rootDir>/**/tests/unit/**/*.test.js'],
/**
* Bir dosya belirtilen glob paterniyle eşleşirse,
* bu dosya için test mevcut olmasa
* ve test paketinde asla gerekli olmamasına rağmen kapsama bilgileri toplanır.
*/
collectCoverageFrom: ['src/**/*.{ts,js}'],
}