Skip to content

Commit

Permalink
test(core): fix custom template tests
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Aug 26, 2019
1 parent 86ca42d commit 3cd44eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/api/core/test/fixture/custom_init/index.js
Original file line number Diff line number Diff line change
@@ -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'));
},
};
1 change: 1 addition & 0 deletions packages/api/core/test/slow/api_spec_slow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 3cd44eb

Please sign in to comment.