build: update dependencies

This commit is contained in:
Michel Jonathan Schmitz
2020-01-22 09:22:13 +01:00
parent 25a795bc91
commit 8b3a8f929b
20 changed files with 785 additions and 691 deletions

View File

@@ -18,8 +18,10 @@ import {slow, suite, test, timeout} from 'mocha-typescript';
import {cwd} from 'process';
import {getTsconfigPath} from '../src/common';
process.on('unhandledRejection', (err) => {
Logger.error('UNHANDLED REJECTION', err.stack);
process.on('unhandledRejection', (reason: unknown): void => {
if (reason instanceof Error) {
Logger.error('UNHANDLED REJECTION', reason.stack);
}
process.exit(1);
});

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {TestFirstUnion} from './TestUnion';
import {TestFirstUnion} from './test-union';
export class TestClass<T> {
test2: T;

View File

@@ -12,9 +12,9 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {TestClass, TestSecondClass} from './TestClass';
import {TestFirstEnum} from './TestEnum';
import {TestThirdUnion} from './TestUnion';
import {TestClass, TestSecondClass} from './test-class';
import {TestFirstEnum} from './test-enum';
import {TestThirdUnion} from './test-union';
export interface TestInterface {
articleBody: string[];

View File

@@ -16,7 +16,7 @@ import {expect} from 'chai';
import {slow, suite, test, timeout} from 'mocha-typescript';
import {getProjectReflection} from '../src/common';
import {readDefinitions} from '../src/uml/read-definitions';
import {generatedModel} from './model/generatedModel';
import {generatedModel} from './model/generated-model';
@suite(timeout(10000), slow(5000))
export class ReadDefinitionsSpec {

View File

@@ -18,8 +18,10 @@ import {slow, suite, test, timeout} from 'mocha-typescript';
import {join} from 'path';
import {Converter, getValidatableTypesFromReflection} from '../src/schema';
process.on('unhandledRejection', (err) => {
Logger.error('UNHANDLED REJECTION', err.stack);
process.on('unhandledRejection', (error: unknown) => {
if (error instanceof Error) {
Logger.error('UNHANDLED REJECTION', error.stack);
}
process.exit(1);
});

View File

@@ -18,13 +18,15 @@ import {existsSync, mkdirSync, writeFileSync} from 'fs';
import {Schema} from 'jsonschema';
import {slow, suite, test, timeout} from 'mocha-typescript';
import {join} from 'path';
import * as rimraf from 'rimraf';
import rimraf from 'rimraf';
import {Foo} from '../src/resources/foo';
import {Converter} from '../src/schema';
import {Validator} from '../src/validate';
process.on('unhandledRejection', (err) => {
Logger.error('UNHANDLED REJECTION', err.stack);
process.on('unhandledRejection', (err: unknown) => {
if (err instanceof Error) {
Logger.error('UNHANDLED REJECTION', err.stack);
}
process.exit(1);
});