test(banners): 🚨 remove edge test environments

This commit is contained in:
Guz013
2023-06-26 15:26:43 -03:00
parent e74d3b6bc2
commit afb5d3742e
3 changed files with 0 additions and 69 deletions

View File

@@ -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');
});

View File

@@ -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');
});

View File

@@ -4,7 +4,6 @@ export default defineProject({
test: {
environmentMatchGlobs: [
['**\/*{,.node}.test.{js,ts}', 'node'],
['**\/*.edge.test.{js,ts}', 'edge-runtime'],
],
include: ['./tests/**/*.test.js'],
},