Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validates client config #1116

Open
wants to merge 25 commits into
base: feature/distributed-demo
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
fecd5f0
Code from old PR
atomicgamedeveloper Dec 17, 2024
e689979
Add test env to preview test setup
atomicgamedeveloper Dec 17, 2024
9ddb439
Refactor
atomicgamedeveloper Dec 17, 2024
07426cf
Merge pull request #1 from atomicgamedeveloper/658-validate-client-co…
atomicgamedeveloper Dec 18, 2024
d388e92
Restructure into route/config
atomicgamedeveloper Dec 18, 2024
fd5da93
Fix endless loop, add loading to /verify
atomicgamedeveloper Dec 18, 2024
aab3df6
Make config warning responsive
atomicgamedeveloper Dec 19, 2024
30ac82d
Add new / and /config/verify pages
atomicgamedeveloper Dec 20, 2024
dfbab92
Extend responsiveness to other boxes
atomicgamedeveloper Dec 20, 2024
0433ded
Ensure tests pass with updated logic
atomicgamedeveloper Dec 23, 2024
41b9583
Refactor getConfigIcon and fix retry bug
atomicgamedeveloper Dec 23, 2024
e15161f
Add ConfigUtil unit tests, fix memory leak in unit.testUtil
atomicgamedeveloper Dec 27, 2024
b03dfa5
Add ConfigItems unit tests
atomicgamedeveloper Dec 28, 2024
5ed7c8c
Unit test Config.tsx
atomicgamedeveloper Dec 30, 2024
58bddce
Add .json to yarn format
atomicgamedeveloper Dec 30, 2024
60b8841
Rm route/config from Eslint ignore list, fix issues
atomicgamedeveloper Dec 30, 2024
67ded78
Strengthen flaky e2e setup
atomicgamedeveloper Jan 1, 2025
36a3652
Update playwright.config.ts
atomicgamedeveloper Jan 1, 2025
96a99b7
Merge branch 'feature/distributed-demo' into feature/distributed-demo
atomicgamedeveloper Jan 1, 2025
24add35
Bump cross-spawn from 7.0.3 to 7.0.6 in /client
dependabot[bot] Jan 1, 2025
cb0fa48
Bump nanoid from 3.3.7 to 3.3.8 in /client
dependabot[bot] Jan 1, 2025
4628b93
Merge pull request #2 from atomicgamedeveloper/dependabot/npm_and_yar…
atomicgamedeveloper Jan 1, 2025
201f65f
Merge pull request #3 from atomicgamedeveloper/dependabot/npm_and_yar…
atomicgamedeveloper Jan 1, 2025
e533f21
Refactor Signin function
atomicgamedeveloper Jan 1, 2025
dbf3929
Merge branch 'feature/distributed-demo' of https://github.com/atomicg…
atomicgamedeveloper Jan 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading