forked from MarcosNicolau/whatsapp-business-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
25 lines (24 loc) · 905 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
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
/* eslint-disable @typescript-eslint/no-var-requires */
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
setupFilesAfterEnv: ["./__tests__/setup.ts"],
modulePaths: ["./src"],
// Indicates whether the coverage information should be collected while executing the test
collectCoverage: true,
// The directory where Jest should output its coverage files
coverageDirectory: "coverage",
// Indicates which provider should be used to instrument code for coverage
coverageProvider: "v8",
testMatch: ["**/?(*.)+(spec|test).+(ts|tsx|js)"],
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
},
modulePathIgnorePatterns: ["dist/"],
testPathIgnorePatterns: ["__tests__/client.test.ts"],
};