✅(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:
@@ -11,6 +11,15 @@ jest.mock("../Paths", () => ({
|
||||
workPath: () => __dirname,
|
||||
}));
|
||||
|
||||
jest.mock("../cunningham.dist.js", () => ({
|
||||
theme: {
|
||||
colors: {
|
||||
primary: "#055FD2",
|
||||
secondary: "#DA0000",
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
const runBin = async (args: string) => {
|
||||
const exec = util.promisify(child_process.exec);
|
||||
const promise = exec(
|
||||
|
||||
Reference in New Issue
Block a user