@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
11 lines • 491 B
JavaScript
import { FilePath } from './FilePath.js';
import { render } from '../../testing/ui.js';
import { describe, expect, test } from 'vitest';
import React from 'react';
describe('FilePath', async () => {
test('renders correctly', async () => {
const { lastFrame } = render(React.createElement(FilePath, { filePath: "src/this/is/a/test.js" }));
expect(lastFrame()).toMatchInlineSnapshot('"[3msrc/this/is/a/test.js[23m"');
});
});
//# sourceMappingURL=FilePath.test.js.map