diff --git a/test/group.test.tsx b/test/group.test.tsx index 4d8a18d..54d27eb 100644 --- a/test/group.test.tsx +++ b/test/group.test.tsx @@ -1,4 +1,4 @@ -import './font'; +import './helpers/font'; import React from 'react'; import { test, expect } from 'vitest'; import config, { Canvas } from '@napi-rs/canvas'; diff --git a/test/font.ts b/test/helpers/font.ts similarity index 74% rename from test/font.ts rename to test/helpers/font.ts index 14eb295..c879551 100644 --- a/test/font.ts +++ b/test/helpers/font.ts @@ -2,6 +2,6 @@ import { join } from 'path'; import { GlobalFonts } from '@napi-rs/canvas'; GlobalFonts.registerFromPath( - join(__dirname, 'Geist-Regular.otf'), + join(__dirname, '../Geist-Regular.otf'), 'Geist Sans', ); diff --git a/test/text.test.tsx b/test/text.test.tsx index eeda968..87ed804 100644 --- a/test/text.test.tsx +++ b/test/text.test.tsx @@ -1,4 +1,4 @@ -import './font'; +import './helpers/font'; import React from 'react'; import { test, expect } from 'vitest'; import config, { Canvas } from '@napi-rs/canvas';