Files
moyosapp_beta.0.0.3.3_beta1/jest.config.js

17 lines
441 B
JavaScript

/**
* Jest is split into 2 projects:
* - node: API routes + lib/unit tests (needs Web APIs like Request/Response/Streams)
* - dom: React component tests (jsdom)
*
* This avoids "ReferenceError: Request is not defined" for route tests while keeping
* RTL/component tests on jsdom.
*/
module.exports = {
projects: [
"<rootDir>/jest.config.node.js",
"<rootDir>/jest.config.lib.js",
"<rootDir>/jest.config.dom.js",
],
};