forked from apify/crawlee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
36 lines (36 loc) · 1.25 KB
/
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
module.exports = {
testTimeout: 60e3,
maxWorkers: 3,
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: false,
testMatch: ['**/?(*.)+(spec|test).[tj]s?(x)'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
collectCoverageFrom: [
'<rootDir>/packages/*/src/**/*.[jt]s',
],
moduleNameMapper: {
'^crawlee$': '<rootDir>/packages/crawlee/src',
'^@crawlee/basic$': '<rootDir>/packages/basic-crawler/src',
'^@crawlee/browser$': '<rootDir>/packages/browser-crawler/src',
'^@crawlee/http$': '<rootDir>/packages/http-crawler/src',
'^@crawlee/jsdom$': '<rootDir>/packages/jsdom-crawler/src',
'^@crawlee/cheerio$': '<rootDir>/packages/cheerio-crawler/src',
'^@crawlee/playwright$': '<rootDir>/packages/playwright-crawler/src',
'^@crawlee/puppeteer$': '<rootDir>/packages/puppeteer-crawler/src',
'^@crawlee/(.*)/(.*)$': '<rootDir>/packages/$1/$2',
'^@crawlee/(.*)$': '<rootDir>/packages/$1/src',
'^test/(.*)$': '<rootDir>/test/$1',
},
modulePathIgnorePatterns: [
'<rootDir>/(.*)/dist',
'<rootDir>/package.json',
],
globals: {
'ts-jest': {
tsconfig: 'test/tsconfig.json',
},
},
};