A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
TypeScript amazon-primeelectronepic-games-launcherepic-games-storeepic-storegaminggoggog-galaxyheroic-games-launcherlinuxplay-gamesprotonsteamwine
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { compilerOptions } = require('../../tsconfig')
module.exports = {
displayName: 'Frontend',
moduleDirectories: ['node_modules', '<rootDir>'],
// Module file extensions for importing
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
testPathIgnorePatterns: ['./node_modules/'],
resetMocks: true,
setupFiles: ['<rootDir>/src/frontend/jest.setup.ts'],
moduleNameMapper: {
'\\.(css|scss)$': '<rootDir>/src/frontend/jest.styleMock.js',
'\\.(png|jpg|jpeg|gif|svg|webp|ico)\\?react$':
'<rootDir>/src/frontend/jest.reactComponentMock.js',
'\\.(png|jpg|jpeg|gif|svg|webp|ico)$':
'<rootDir>/src/frontend/jest.assetMock.js'
},
rootDir: '../..',
// The root of your source code, typically /src
roots: ['<rootDir>/src/frontend', '<rootDir>/src/common'],
testMatch: ['**/__tests__/**/*.test.{ts,tsx}'],
// Jest transformations -- this adds support for TypeScript
// using ts-jest
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
modulePaths: [compilerOptions.baseUrl]
}