Skip to content

Commit

Permalink
Code from old PR
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicgamedeveloper committed Dec 17, 2024
1 parent 0f127e7 commit fecd5f0
Show file tree
Hide file tree
Showing 20 changed files with 804 additions and 273 deletions.
6 changes: 4 additions & 2 deletions client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import jsxA11Y from "eslint-plugin-jsx-a11y";
import react from "eslint-plugin-react";
import jest from "eslint-plugin-jest";
import reactHooks from "eslint-plugin-react-hooks";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
Expand Down Expand Up @@ -40,8 +41,9 @@ export default [{
plugins: {
"jsx-a11y": jsxA11Y,
react,
"react-hooks": reactHooks,
jest,
"@typescript-eslint": typescriptEslint,
"@typescript-eslint": typescriptEslint
},

languageOptions: {
Expand Down Expand Up @@ -86,7 +88,7 @@ export default [{
"@typescript-eslint/no-unused-vars": [
"error",
{
"caughtErrorsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
}
],
"no-console": "error",
Expand Down
96 changes: 48 additions & 48 deletions client/jest.config.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
{
"preset": "ts-jest",
"testEnvironment": "jsdom",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"transformIgnorePatterns": [
"/node_modules/(?![d3-shape|recharts]).+\\.js$"
],
"collectCoverage": true,
"coverageReporters": [
"text",
"cobertura",
"clover",
"lcov",
"json"
],
"testTimeout": 15000,
"collectCoverageFrom": [
"src/**/*.{ts,tsx}"
],
"coveragePathIgnorePatterns": [
"node_modules",
"build",
"src/index.tsx",
"src/AppProvider.tsx",
"src/store/store.ts",
"src/preview/util/gitlabDriver.ts"
],
"modulePathIgnorePatterns": [
"test/e2e",
"mocks",
"config"
],
"coverageDirectory": "<rootDir>/coverage/",
"globals": {
"window.ENV.SERVER_HOSTNAME": "localhost",
"window.ENV.SERVER_PORT": 3500
},
"verbose": true,
"testRegex": "/test/.*\\.test.tsx?$",
"modulePaths": [
"<rootDir>/src/"
],
"moduleNameMapper": {
"^test/(.*)$": "<rootDir>/test/$1",
"\\.(css|less|scss)$": "<rootDir>/test/preview/__mocks__/styleMock.ts"
}
}
"preset": "ts-jest",
"testEnvironment": "jsdom",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"transformIgnorePatterns": [
"/node_modules/(?![d3-shape|recharts]).+\\.js$"
],
"collectCoverage": true,
"coverageReporters": [
"text",
"cobertura",
"clover",
"lcov",
"json"
],
"testTimeout": 15000,
"collectCoverageFrom": [
"src/**/*.{ts,tsx}"
],
"coveragePathIgnorePatterns": [
"node_modules",
"build",
"src/index.tsx",
"src/AppProvider.tsx",
"src/store/store.ts",
"src/preview/util/gitlabDriver.ts"
],
"modulePathIgnorePatterns": [
"test/e2e",
"mocks",
"config"
],
"coverageDirectory": "<rootDir>/coverage/",
"globals": {
"window.ENV.SERVER_HOSTNAME": "localhost",
"window.ENV.SERVER_PORT": 3500
},
"verbose": true,
"testRegex": "/test/.*\\.test.tsx?$",
"modulePaths": [
"<rootDir>/src/"
],
"moduleNameMapper": {
"^test/(.*)$": "<rootDir>/test/$1",
"\\.(css|less|scss)$": "<rootDir>/test/preview/__mocks__/styleMock.ts"
}
}
Loading

0 comments on commit fecd5f0

Please sign in to comment.