Organizes 11 projects for Cerbo GX/Venus OS into a single repository: - axiom-nmea: Raymarine LightHouse protocol decoder - dbus-generator-ramp: Generator current ramp controller - dbus-lightning: Blitzortung lightning monitor - dbus-meteoblue-forecast: Meteoblue weather forecast - dbus-no-foreign-land: noforeignland.com tracking - dbus-tides: Tide prediction from depth + harmonics - dbus-vrm-history: VRM cloud history proxy - dbus-windy-station: Windy.com weather upload - mfd-custom-app: MFD app deployment package - venus-html5-app: Custom Victron HTML5 app fork - watermaker: Watermaker PLC control UI Adds root README, .gitignore, project template, and per-project .gitignore files. Sensitive config files excluded via .gitignore with .example templates provided. Made-with: Cursor
28 lines
1.2 KiB
JavaScript
28 lines
1.2 KiB
JavaScript
/** @type {import('jest').Config} */
|
|
const config = {
|
|
roots: ["<rootDir>/src"],
|
|
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts"],
|
|
setupFiles: ["react-app-polyfill/jsdom"],
|
|
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
|
|
testMatch: ["<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}", "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"],
|
|
testEnvironment: "jsdom",
|
|
testRunner: "<rootDir>/node_modules/jest-circus/runner.js",
|
|
transform: {
|
|
"^.+\\.svg$": "<rootDir>/config/jest/fileTransform.js",
|
|
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
|
|
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js",
|
|
},
|
|
transformIgnorePatterns: ["node_modules/(?!@victronenergy/mfd-modules|lodash-es|axios)"],
|
|
modulePaths: ["./src"],
|
|
moduleNameMapper: {
|
|
"^react-native$": "react-native-web",
|
|
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
|
|
},
|
|
moduleFileExtensions: ["web.js", "js", "web.ts", "ts", "web.tsx", "tsx", "json", "web.jsx", "jsx", "node"],
|
|
watchPlugins: ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"],
|
|
resetMocks: true,
|
|
}
|
|
|
|
module.exports = config
|