mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 07:27:47 +01:00
26 lines
846 B
JavaScript
26 lines
846 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
module.exports = {
|
|
preset: "ts-jest",
|
|
moduleNameMapper: {
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
|
"<rootDir>/src/fileMock.ts",
|
|
"\\.(css|less|scss)$": "<rootDir>/src/styleMock.ts",
|
|
"react-spring/renderprops":
|
|
"<rootDir>/node_modules/react-spring/renderprops.cjs",
|
|
"react-spring": "<rootDir>/node_modules/react-spring/web.cjs",
|
|
"~(.*)": "<rootDir>/$1",
|
|
},
|
|
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
|
|
testEnvironment: "jsdom",
|
|
reporters: [
|
|
"default",
|
|
[
|
|
"jest-junit",
|
|
{
|
|
outputDirectory: "frontend-reports",
|
|
outputName: "frontend-report.xml",
|
|
},
|
|
],
|
|
],
|
|
};
|