mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-06-02 06:14:22 +02:00
21 lines
724 B
TypeScript
21 lines
724 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: ["<rootDir>/release/app"],
|
|
setupFiles: ["./.erb/scripts/check-build-exists.ts"],
|
|
modulePathIgnorePatterns: ["<rootDir>/release/app"]
|
|
};
|
|
|
|
export default config;
|