webamp/config/jest.unit.js
2025-07-06 18:00:48 -07:00

21 lines
605 B
JavaScript

module.exports = {
displayName: "test",
rootDir: "../",
testRegex: "\\.test\\.(js|ts|tsx)$",
moduleFileExtensions: ["js", "tsx", "ts", "json"],
testPathIgnorePatterns: [
"/node_modules/",
"dist",
// TODO: Add these as we can...
"/packages/webamp/",
"/packages/ani-cursor/",
"/packages/winamp-eqf/",
// TODO: Fix config import so that this can work.
"/packages/webamp-modern/src/__tests__/integration*",
],
testEnvironment: "jsdom",
setupFiles: ["<rootDir>/packages/skin-database/jest-setup.js"],
transform: {
"^.+\\.(t|j)sx?$": ["@swc/jest"],
},
};