Skip to content
Permalink
Browse files

test(core): fix custom template tests

  • Loading branch information
malept committed Aug 26, 2019
1 parent 86ca42d commit 3cd44eb02fab5a5e16cc65f9f90cb93010e25d57
@@ -1,8 +1,11 @@
const fs = require('fs-extra');
const path = require('path');

module.exports = {
dependencies: ['react'],
devDependencies: ['react-dom'],
templateDirectory: path.resolve(__dirname, './tmpl'),
postCopy: (initDir, ora, lintStyle) => {},
initializeTemplate: async (directory) => {
await fs.copy(path.resolve(__dirname, 'tmpl', '_bar'), path.resolve(directory, '.bar'));
await fs.copy(path.resolve(__dirname, 'tmpl', 'src'), path.resolve(directory, 'src'));
},
};
@@ -94,6 +94,7 @@ describe(`electron-forge API (with installer=${nodeInstaller})`, () => {

it('should create deep files correctly', async () => {
await expectProjectPathExists('src/foo.js', 'file');
await expectProjectPathExists('src/index.html', 'file');
});

describe('lint', () => {

0 comments on commit 3cd44eb

Please sign in to comment.
You can’t perform that action at this time.