* Feature: Canvas layer enhancements(DIP) * feedback fixes * fixing build * dip * dip * dip * fixing build * dip * dev fixes * dip * Fixing top bottom resize handles * dip * reposition widget name on top edges. * dip * dip * dip * dip * renaming selectedWidget to lastSelectedWidget * code clean up * Fixing list widget as per grid scale. * Fixing existing specs. * Adding migration test cases. * dip * FIxing proppane in modal. * fixing modal z-indedx. * fix for modal name. * dip * dip * dip * adding test cases for hotkeys. * dip * dip * fixing build * Trying some performance improvements for jests. * 17 mins with runinband lets try without it. * minor bug fixes. * code clean up * save migrated app on fetch. * fixing few cypress tests * fixing cypress tests * fixing cypress tests. * fixing cypress * updated DSL * Addressing code review comments. * test fails * dip * eslint fixes. * fixing debugger cypress tests. * updating latest page version. * updating migration changes to cypress dsl's. * updating chart data fixes for cypress tests. Co-authored-by: Apple <nandan@thinkify.io>
77 lines
2.9 KiB
JavaScript
77 lines
2.9 KiB
JavaScript
function parseConfig() {
|
|
return "";
|
|
}
|
|
const LOG_LEVELS = ["debug", "error"];
|
|
const CONFIG_LOG_LEVEL_INDEX = 1;
|
|
|
|
module.exports = {
|
|
setupFiles: ["jest-canvas-mock"],
|
|
roots: ["<rootDir>/src"],
|
|
transform: {
|
|
"^.+\\.(png|js|ts|tsx)$": "ts-jest",
|
|
},
|
|
setupFilesAfterEnv: ["<rootDir>/test/setup.ts"],
|
|
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(tsx|ts|js)?$",
|
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node", "css"],
|
|
moduleDirectories: ["node_modules", "src", "test"],
|
|
transformIgnorePatterns: [
|
|
"<rootDir>/node_modules/(?!codemirror|react-dnd|dnd-core|@babel|(@blueprintjs/core/lib/esnext)|(@blueprintjs/core/lib/esm)|@github|lodash-es|@draft-js-plugins)",
|
|
],
|
|
moduleNameMapper: {
|
|
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js",
|
|
"\\.svg$": "<rootDir>/test/__mocks__/svgMock.js",
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
|
"<rootDir>/test/__mocks__/fileMock.js",
|
|
"^worker-loader!": "<rootDir>/test/__mocks__/workerMock.js",
|
|
"^!!raw-loader!": "<rootDir>/test/__mocks__/derivedMock.js",
|
|
"test/(.*)": "<rootDir>/test/$1",
|
|
},
|
|
globals: {
|
|
"ts-jest": {
|
|
isolatedModules: true,
|
|
},
|
|
APPSMITH_FEATURE_CONFIGS: {
|
|
sentry: {
|
|
dsn: parseConfig("__APPSMITH_SENTRY_DSN__"),
|
|
release: parseConfig("__APPSMITH_SENTRY_RELEASE__"),
|
|
environment: parseConfig("__APPSMITH_SENTRY_ENVIRONMENT__"),
|
|
},
|
|
smartLook: {
|
|
id: parseConfig("__APPSMITH_SMART_LOOK_ID__"),
|
|
},
|
|
enableGoogleOAuth: parseConfig("__APPSMITH_OAUTH2_GOOGLE_CLIENT_ID__"),
|
|
enableGithubOAuth: parseConfig("__APPSMITH_OAUTH2_GITHUB_CLIENT_ID__"),
|
|
enableRapidAPI: parseConfig("__APPSMITH_MARKETPLACE_ENABLED__"),
|
|
segment: {
|
|
apiKey: parseConfig("__APPSMITH_SEGMENT_KEY__"),
|
|
ceKey: parseConfig("__APPSMITH_SEGMENT_CE_KEY__"),
|
|
},
|
|
fusioncharts: {
|
|
licenseKey: parseConfig("__APPSMITH_FUSIONCHARTS_LICENSE_KEY__"),
|
|
},
|
|
optimizely: parseConfig("__APPSMITH_OPTIMIZELY_KEY__"),
|
|
enableMixpanel: parseConfig("__APPSMITH_SEGMENT_KEY__"),
|
|
algolia: {
|
|
apiId: parseConfig("__APPSMITH_ALGOLIA_API_ID__"),
|
|
apiKey: parseConfig("__APPSMITH_ALGOLIA_API_KEY__"),
|
|
indexName: parseConfig("__APPSMITH_ALGOLIA_SEARCH_INDEX_NAME__"),
|
|
},
|
|
logLevel:
|
|
CONFIG_LOG_LEVEL_INDEX > -1
|
|
? LOG_LEVELS[CONFIG_LOG_LEVEL_INDEX]
|
|
: LOG_LEVELS[1],
|
|
google: parseConfig("__APPSMITH_GOOGLE_MAPS_API_KEY__"),
|
|
cloudHosting: "CLOUD_HOSTING",
|
|
enableTNCPP: parseConfig("__APPSMITH_TNC_PP__"),
|
|
appVersion: {
|
|
id: parseConfig("__APPSMITH_VERSION_ID__"),
|
|
releaseDate: parseConfig("__APPSMITH_VERSION_RELEASE_DATE__"),
|
|
},
|
|
intercomAppID: "APP_ID",
|
|
mailEnabled: parseConfig("__APPSMITH_MAIL_ENABLED__"),
|
|
|
|
disableTelemetry: "DISABLE_TELEMETRY" === "" || "DISABLE_TELEMETRY",
|
|
},
|
|
},
|
|
};
|