mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
20 lines
663 B
TypeScript
20 lines
663 B
TypeScript
import type { Config } from "jest";
|
|
|
|
const config: Config = {
|
|
// testURL: "http://localhost/",
|
|
// testEnvironment: "jsdom",
|
|
transform: {
|
|
"\\.(ts|tsx|js|jsx)$": "ts-jest",
|
|
},
|
|
moduleNameMapper: {
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/.erb/mocks/fileMock.js",
|
|
"\\.(css|less|sass|scss)$": "identity-obj-proxy",
|
|
},
|
|
moduleFileExtensions: ["js", "jsx", "ts", "tsx", "json"],
|
|
moduleDirectories: ["node_modules", "src"],
|
|
testPathIgnorePatterns: ["release/app/dist"],
|
|
setupFiles: ["./.erb/scripts/check-build-exists.ts"],
|
|
};
|
|
|
|
export default config;
|