mirror of
https://github.com/projectstorm/react-diagrams.git
synced 2025-08-14 08:43:42 +08:00
28 lines
536 B
JavaScript
28 lines
536 B
JavaScript
const path = require("path");
|
|
// jest.config.js
|
|
module.exports = {
|
|
verbose: true,
|
|
moduleFileExtensions: [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"jsx",
|
|
"json",
|
|
"node"
|
|
],
|
|
transform: {
|
|
".*test_loader.*": path.join(__dirname, "tests", "helpers", "storybook-loader.js" ),
|
|
"^.+\\.tsx?$": "ts-jest",
|
|
},
|
|
moduleNameMapper:{
|
|
"\\.(scss|css|png)$": path.join(__dirname,"tests","helpers","css-mock.js"),
|
|
"storm-react-diagrams": path.join(__dirname, "src", "main")
|
|
},
|
|
roots:[
|
|
__dirname+'/tests'
|
|
],
|
|
testMatch: [
|
|
"**/*\.test\.tsx"
|
|
]
|
|
};
|