Files
cunningham/packages/tokens/jest.config.ts
Nathan Vasse f36cc07f1b (tokens) add token references
Previously we were not fully using CSS variables as values used in
CSS were hard-coded one. It wasn't keeping the variable references.
This was causing issues when customizing the theme, because editing
colors was not enough, it was needed to customize also the tokens
using these variables. Now by introducing ref() we can delegate how
to deal with these directly to the generators themselves.
2023-07-07 15:06:18 +02:00

19 lines
562 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" },
],
},
};
export default jestConfig;