30 lines
918 B
JavaScript
30 lines
918 B
JavaScript
const webpack = require("webpack");
|
|
|
|
module.exports = {
|
|
webpack: {
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
//"process.env.API_URL": JSON.stringify("http://localhost:3001")
|
|
"process.env.API_URL": JSON.stringify("http://localhost:5000")
|
|
})
|
|
]
|
|
},
|
|
jest: {
|
|
//babel: {
|
|
// addPresets: true, /* (default value) */
|
|
// addPlugins: true /* (default value) */
|
|
//},
|
|
configure: {
|
|
"testURL": "http://test.com/login",
|
|
setupFiles: ["./tools/testSetup.js"],
|
|
moduleFileExtensions: ["js", "jsx"],
|
|
moduleNameMapper: {
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
|
"<rootDir>/tools/fileMock.js",
|
|
"\\.(css|less)$": "<rootDir>/tools/styleMock.js"
|
|
}
|
|
}
|
|
/*configure: (jestConfig, { env, paths, resolve, rootDir }) => { return jestConfig; }*/
|
|
}
|
|
};
|