UNPKG

@naoufal/create-react-component

Version:
32 lines (24 loc) 631 B
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') ); }); }); });