Files
cunningham/packages/tokens/jest.config.ts
Nathan Vasse cce8eccf5b (theme) add themes management
This is made in order to be able to handle natively multiple themes
for the future light/dark themes and also allow consumers to create
their own.
2023-10-04 15:18:00 +02:00

20 lines
584 B
TypeScript

import type { JestConfigWithTsJest } from "ts-jest";
const jestConfig: JestConfigWithTsJest = {
preset: "ts-jest",
testEnvironment: "node",
moduleDirectories: ["node_modules", "src/bin", "src/lib"],
setupFiles: ["<rootDir>/src/bin/tests/Setup.ts"],
transform: {
"^.+\\.tsx?$": [
"ts-jest",
// required due to custom location of tsconfig.json configuration file
// https://kulshekhar.github.io/ts-jest/docs/getting-started/options/tsconfig
{ tsconfig: "./src/bin/tsconfig.json" },
],
},
prettierPath: null,
};
export default jestConfig;