mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-11 11:32:27 +03:00
b503b53062
* Fix tests * Fix tests * Fix 0 in SortandFilterBar
36 lines
787 B
JavaScript
36 lines
787 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
devServer: {
|
|
client: {
|
|
overlay: {
|
|
runtimeErrors: (error) => {
|
|
if (error.message === "ResizeObserver loop limit exceeded") {
|
|
return false;
|
|
}
|
|
if (error.message === "Unauthorized") {
|
|
return false;
|
|
}
|
|
return true;
|
|
},
|
|
},
|
|
}
|
|
},
|
|
webpack: {
|
|
alias: {
|
|
'~': path.resolve(__dirname, 'src'),
|
|
'@': path.resolve(__dirname, 'src/modules'),
|
|
'@testing': path.resolve(__dirname, 'src/testing'),
|
|
},
|
|
},
|
|
jest: {
|
|
configure: {
|
|
moduleNameMapper: {
|
|
'~/(.+)': "<rootDir>/src/$1",
|
|
'@/(.+)': "<rootDir>/src/modules/$1",
|
|
'@testing/(.+)': "<rootDir>/src/testing/$1",
|
|
}
|
|
},
|
|
},
|
|
};
|