mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 16:26:37 +00:00
3fd38e7306
## Description: This will be used to determine clan winners in the api layer. ## 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
31 lines
923 B
TypeScript
31 lines
923 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"],
|
|
"^.+\\.mjs$": ["@swc/jest"],
|
|
"^.+\\.js$": ["@swc/jest"],
|
|
},
|
|
transformIgnorePatterns: [
|
|
"node_modules/(?!(nanoid|@jsep|fastpriorityqueue|@datastructures-js)/)",
|
|
],
|
|
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.d.ts"],
|
|
coverageThreshold: {
|
|
global: {
|
|
statements: 21.5,
|
|
branches: 16,
|
|
lines: 21.0,
|
|
functions: 20.5,
|
|
},
|
|
},
|
|
coverageReporters: ["text", "lcov", "html"],
|
|
};
|