@naoufal/create-react-component
Version:
The fastest way to create React Components
32 lines (24 loc) • 631 B
JavaScript
const path = require('path');
const {
// removeTempDir,
// copyDirectory,
// copyFile,
buildTemplatePath
} = require('./execution');
// TODO:
// - Add fs related tests
describe('Execution', () => {
// describe('removeTempDir', () => {
// });
// describe('copyDirectory', () => {
// });
// describe('copyFile', () => {
// });
describe('buildTemplatePath', () => {
test('should build path to the default function template', () => {
expect(buildTemplatePath('default', 'function')).toBe(
path.join(__dirname + '/../../crc-template-default/templates/function')
);
});
});
});