mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
20 lines
575 B
TypeScript
20 lines
575 B
TypeScript
import type { Config } from "jest";
|
|
|
|
const config: Config = {
|
|
rootDir: "../",
|
|
moduleDirectories: ["node_modules", "frontend"],
|
|
testEnvironment: "jsdom",
|
|
moduleNameMapper: {
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
|
"<rootDir>/__mocks__/fileMock.js",
|
|
"\\.(css|scss|sass)$": "identity-obj-proxy",
|
|
},
|
|
testMatch: ["**/*tests.[jt]s?(x)"],
|
|
setupFilesAfterEnv: ["<rootDir>/test/test-setup.ts"],
|
|
clearMocks: true,
|
|
testEnvironmentOptions: {
|
|
url: "http://localhost:8080",
|
|
},
|
|
};
|
|
|
|
export default config;
|