Skip to content

Commit

Permalink
Merge pull request #23 from mzedel/refac/redux-layout
Browse files Browse the repository at this point in the history
Refac/redux layout
  • Loading branch information
mzedel authored Sep 27, 2024
2 parents 676bd55 + fe0b221 commit 282916e
Show file tree
Hide file tree
Showing 526 changed files with 10,198 additions and 9,894 deletions.
11 changes: 5 additions & 6 deletions frontend/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@
"extends": ["eslint:recommended", "plugin:import/errors", "plugin:import/warnings", "plugin:react-hooks/recommended", "plugin:react/recommended"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
"typescript": {}
},
"react": {
"pragma": "React",
"version": "detect"
}
},
"parser": "@babel/eslint-parser",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
"project": "./tsconfig.json",
"tsconfigRootDir": "./"
},
"globals": {
"mender_environment": "readonly"
},
"plugins": ["react", "prettier", "sonarjs"],
"plugins": ["react", "prettier", "sonarjs", "@typescript-eslint", "import"],
"rules": {
"prettier/prettier": "error",
"consistent-this": ["error", "self"],
Expand Down
3 changes: 1 addition & 2 deletions frontend/babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
],
"@babel/preset-typescript",
["@babel/preset-react", { "runtime": "automatic" }]
],
"plugins": ["@babel/plugin-syntax-dynamic-import", "@babel/plugin-transform-runtime"]
]
}
57 changes: 57 additions & 0 deletions frontend/jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{js,ts,tsx}"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/themes/"
],
"coverageReporters": [
[
"lcov",
{
"projectRoot": "../"
}
],
"text"
],
"setupFiles": [
"<rootDir>/tests/jest.polyfills.js"
],
"setupFilesAfterEnv": [
"<rootDir>/tests/setupTests.js"
],
"snapshotSerializers": [
"@emotion/jest/serializer"
],
"testEnvironment": "jest-environment-jsdom",
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,ts,tsx}",
"<rootDir>/src/**/*.{spec,test}.{js,ts,tsx}"
],
"fakeTimers": {
"enableGlobally": true
},
"preset": "ts-jest/presets/js-with-babel",
"testEnvironmentOptions": {
"customExportConditions": [
""
]
},
"transform": {
"\\.[j|t]sx?$": "babel-jest",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tests/assetsTransformer.js"
},
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!xterm-for-react|node-fetch|jsdom-worker|data-uri-to-buffer|fetch-blob|formdata-polyfill)"
],
"moduleNameMapper": {
"\\.(css|less)$": "<rootDir>/tests/cssTransform.js",
"^@northern.tech/store/(.*)$": "<rootDir>/src/js/store/$1"
},
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
}
Loading

0 comments on commit 282916e

Please sign in to comment.