Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
tancredi committed Oct 2, 2021
1 parent b6c90de commit 69a3de8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/generators/__tests__/generator-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ const getCodepointsMock = getCodepoints as any as jest.Mock;

jest.mock('path');

jest.mock('../../constants', () => ({
...jest.requireActual('../../constants'),
TEMPLATES_DIR: '/foo/templates-dir'
}));
jest.mock('../../constants', () => {
const constants = jest.requireActual('../../constants');

return { ...constants, TEMPLATES_DIR: '/foo/templates-dir' };
});

jest.mock('../../types/misc', () => ({
FontAssetType: { TTF: 'TTF', EOT: 'eot' },
Expand Down

0 comments on commit 69a3de8

Please sign in to comment.