mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:40:42 +00:00
584fa9fb5d
## Description: Added a colors tab in territory patterns modal so players can select their color. Refactored the PrivilegeChecker, removed custom flag checks since we no longer support custom flags. <img width="479" height="345" alt="Screenshot 2025-09-27 at 5 01 17 PM" src="https://github.com/user-attachments/assets/ad96da65-f0eb-4731-a861-e6e5fcb4566a" /> ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: evan
27 lines
805 B
TypeScript
27 lines
805 B
TypeScript
export default {
|
|
testEnvironment: "node",
|
|
testRegex: "/tests/.*\\.(test|spec)?\\.(ts|tsx)$",
|
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
|
|
extensionsToTreatAsEsm: [".ts"],
|
|
moduleNameMapper: {
|
|
"^(\\.{1,2}/.*)\\.js$": "$1",
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
|
"<rootDir>/__mocks__/fileMock.js",
|
|
"\\.(css|less)$": "<rootDir>/__mocks__/fileMock.js",
|
|
},
|
|
transform: {
|
|
"^.+\\.tsx?$": ["@swc/jest"],
|
|
},
|
|
transformIgnorePatterns: ["node_modules/(?!(node:)/)"],
|
|
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.d.ts"],
|
|
coverageThreshold: {
|
|
global: {
|
|
statements: 21.5,
|
|
branches: 16,
|
|
lines: 21.0,
|
|
functions: 20.5,
|
|
},
|
|
},
|
|
coverageReporters: ["text", "lcov", "html"],
|
|
};
|