Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions bin/dev

This file was deleted.

6 changes: 6 additions & 0 deletions bin/dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node_modules/.bin/ts-node
// eslint-disable-next-line node/shebang, unicorn/prefer-top-level-await
(async () => {
const oclif = await import('@oclif/core');
await oclif.execute({ development: true, dir: __dirname });
})();
5 changes: 0 additions & 5 deletions bin/run

This file was deleted.

7 changes: 7 additions & 0 deletions bin/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env node

// eslint-disable-next-line unicorn/prefer-top-level-await
(async () => {
const oclif = await import('@oclif/core');
await oclif.execute({ development: false, dir: __dirname });
})();
3 changes: 2 additions & 1 deletion test/unit/adapters/file-upload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ describe('File Upload', () => {
{ name: 'NextJs', value: 'NEXTJS' },
{ name: 'Other', value: 'OTHER' },
],
outputDirectories:""
outputDirectories:"",
supportedFrameworksForServerCommands: ['ANGULAR', 'OTHER', 'REMIX']
},
};
let archiveMockData = { zipName: 'abc.zip', zipPath: 'path/to/zip', projectName: 'test' };
Expand Down
2 changes: 2 additions & 0 deletions test/unit/adapters/github.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ describe('GitHub', () => {
{ name: 'Other', value: 'OTHER' },
],
repository: { fullName: 'Gatsby Starter' },
outputDirectories:"",
supportedFrameworksForServerCommands: ['ANGULAR', 'OTHER', 'REMIX']
},
};
beforeEach(function () {
Expand Down
10 changes: 8 additions & 2 deletions test/unit/util/log.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ describe('Log Util', () => {
};
beforeEach(() => {
createLoggerStub = stub(winston, 'createLogger');
processExitStub = stub(process, 'exit');
if (!process.exit.restore) {
processExitStub = stub(process, 'exit');
} else {
processExitStub = process.exit;
}
});

afterEach(() => {
createLoggerStub.restore();
processExitStub.restore();
if (processExitStub.restore) {
processExitStub.restore();
}
});

it('should create a logger with file and console transports when project base path exists', () => {
Expand Down