diff --git a/packages/banners/tests/results.edge.test.js b/packages/banners/tests/results.edge.test.js deleted file mode 100644 index 9bacd63..0000000 --- a/packages/banners/tests/results.edge.test.js +++ /dev/null @@ -1,34 +0,0 @@ -import { expect, it } from 'vitest'; -import banner from '../src/index'; - -it('With Title', async () => { - const result = await banner({ - title: 'Hello World', - }); - expect(result.toString()).toMatchFileSnapshot('./__snapshots__/withTitle.svg'); -}); - -it('With Subtitle', async () => { - const result = await banner({ - title: 'Hello World', - subtitle: 'This is a test', - }); - expect(result.toString()).toMatchFileSnapshot('./__snapshots__/withSubtitle.svg'); -}); - -it('With Icon', async () => { - const result = await banner({ - title: 'Hello World', - icon: 'solar:test-tube-bold-duotone', - }); - expect(result.toString()).toMatchFileSnapshot('./__snapshots__/withIcon.svg'); -}); - -it('With Subtitle and Icon', async () => { - const result = await banner({ - title: 'Hello World', - subtitle: 'This is a test', - icon: 'solar:test-tube-bold-duotone', - }); - expect(result.toString()).toMatchFileSnapshot('./__snapshots__/withComplete.svg'); -}); diff --git a/packages/banners/tests/results.node.test.js b/packages/banners/tests/results.node.test.js deleted file mode 100644 index 9bacd63..0000000 --- a/packages/banners/tests/results.node.test.js +++ /dev/null @@ -1,34 +0,0 @@ -import { expect, it } from 'vitest'; -import banner from '../src/index'; - -it('With Title', async () => { - const result = await banner({ - title: 'Hello World', - }); - expect(result.toString()).toMatchFileSnapshot('./__snapshots__/withTitle.svg'); -}); - -it('With Subtitle', async () => { - const result = await banner({ - title: 'Hello World', - subtitle: 'This is a test', - }); - expect(result.toString()).toMatchFileSnapshot('./__snapshots__/withSubtitle.svg'); -}); - -it('With Icon', async () => { - const result = await banner({ - title: 'Hello World', - icon: 'solar:test-tube-bold-duotone', - }); - expect(result.toString()).toMatchFileSnapshot('./__snapshots__/withIcon.svg'); -}); - -it('With Subtitle and Icon', async () => { - const result = await banner({ - title: 'Hello World', - subtitle: 'This is a test', - icon: 'solar:test-tube-bold-duotone', - }); - expect(result.toString()).toMatchFileSnapshot('./__snapshots__/withComplete.svg'); -}); diff --git a/packages/banners/vitest.config.js b/packages/banners/vitest.config.js index c7b2366..90a689f 100644 --- a/packages/banners/vitest.config.js +++ b/packages/banners/vitest.config.js @@ -4,7 +4,6 @@ export default defineProject({ test: { environmentMatchGlobs: [ ['**\/*{,.node}.test.{js,ts}', 'node'], - ['**\/*.edge.test.{js,ts}', 'edge-runtime'], ], include: ['./tests/**/*.test.js'], },