Skip to content

Commit

Permalink
chore: add TransformOptions type to init in tests (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz authored Sep 5, 2024
1 parent 1ad17e2 commit 6e342f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion test/integration/cross-file-refs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ describe('cross file references', () => {
cleanup(dict);
dict = await init(cfg, {
withSDBuiltins: false,
expand: { typography: true },
});
});

Expand Down
3 changes: 2 additions & 1 deletion test/integration/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { Config } from 'style-dictionary/types';
import StyleDictionary from 'style-dictionary';
import type { TransformOptions } from '../../src/TransformOptions.js';
import { register } from '../../src/register.js';

export async function init(cfg: Config, transformOpts = {}) {
export async function init(cfg: Config, transformOpts: TransformOptions = {}) {
register(StyleDictionary, transformOpts);
const dict = new StyleDictionary({
...cfg,
Expand Down

0 comments on commit 6e342f4

Please sign in to comment.