✅(tokens) mock default tokens in tests
If we don't do that we will have to update all tests each time the default value of a token is changed.
This commit is contained in:
@@ -4,6 +4,15 @@ const jestConfig: JestConfigWithTsJest = {
|
||||
preset: "ts-jest",
|
||||
testEnvironment: "node",
|
||||
moduleDirectories: ["node_modules", "src/bin"],
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user