test(banners): 🚨 remove edge test environments
This commit is contained in:
@@ -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');
|
||||
});
|
||||
@@ -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');
|
||||
});
|
||||
@@ -4,7 +4,6 @@ export default defineProject({
|
||||
test: {
|
||||
environmentMatchGlobs: [
|
||||
['**\/*{,.node}.test.{js,ts}', 'node'],
|
||||
['**\/*.edge.test.{js,ts}', 'edge-runtime'],
|
||||
],
|
||||
include: ['./tests/**/*.test.js'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user