nodeguy/jest.config.js
Atul R 36329a44b3
Experimental menu and tests (#139)
* Adds basic tests for window and label

* Adds few test cases for QWidget

* Adds working tests setup

* Adds inital code for menus
2019-10-07 19:24:17 +02:00

17 lines
614 B
JavaScript

// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
clearMocks: true,
coverageDirectory: "coverage",
collectCoverageFrom: ["**/*.{js,jsx,ts,tsx}", "!**/node_modules/**"],
forceCoverageMatch: ["**/*.{ts,tsx,js,jsx}", "!**/*.test.{ts,tsx,js,jsx}"],
moduleFileExtensions: ["js", "json", "jsx", "ts", "tsx", "node"],
roots: ["<rootDir>/src/lib"],
testEnvironment: "node",
transform: {
"^.+\\.tsx?$": "ts-jest"
},
globalSetup: "./config/tests/setup.js",
globalTeardown: "./config/tests/teardown.js"
};