-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
21 lines (21 loc) · 805 Bytes
/
jest.config.js
File metadata and controls
21 lines (21 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
// Prefer TS sources over any stale compiled JS artifacts in src/.
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
// Files ending in -helpers or -fixtures inside __tests__ are shared utilities, not suites.
// Files ending in -spike are exploratory components meant to run in the example app, not Jest.
testPathIgnorePatterns: [
'/node_modules/',
'-helpers\\.ts$',
'-fixtures\\.ts$',
'-spike\\.tsx?$',
// The tests-ui suite has its own jest config (UI tests against the real
// FastComments backend; mounts RN components). Run via `npm run test-ui`.
'/tests-ui/'
],
transform: {
'.(ts|tsx)': 'ts-jest'
}
};