@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
11 lines • 468 B
JavaScript
import { Command } from './Command.js';
import { render } from '../../testing/ui.js';
import { describe, expect, test } from 'vitest';
import React from 'react';
describe('Command', async () => {
test('renders correctly', async () => {
const { lastFrame } = render(React.createElement(Command, { command: "npm install" }));
expect(lastFrame()).toMatchInlineSnapshot('"[95m`npm install`[39m"');
});
});
//# sourceMappingURL=Command.test.js.map