Skip to content

Commit

Permalink
Merge pull request #27068 from 43081j/cc-test
Browse files Browse the repository at this point in the history
Build: Fix test in core-common being ignored
  • Loading branch information
JReinhold committed May 15, 2024
2 parents 1711c49 + 0245d8b commit 41c15fc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions code/lib/core-common/src/utils/get-renderer-name.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { it } from 'node:test';
import { describe, expect } from 'vitest';
import { describe, expect, test } from 'vitest';
import { extractProperRendererNameFromFramework } from './get-renderer-name';

describe('get-renderer-name', () => {
describe('extractProperRendererNameFromFramework', () => {
it('should return the renderer name for a known framework', async () => {
const renderer = await extractProperRendererNameFromFramework('@storybook/react');
test('should return the renderer name for a known framework', async () => {
const renderer = await extractProperRendererNameFromFramework('@storybook/react-vite');
expect(renderer).toEqual('react');
});

it('should return null for an unknown framework', async () => {
test('should return null for an unknown framework', async () => {
const renderer = await extractProperRendererNameFromFramework('@third-party/framework');
expect(renderer).toBeNull();
});
Expand Down

0 comments on commit 41c15fc

Please sign in to comment.