mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 14:32:50 +00:00
build: update dependencies
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
@@ -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[];
|
||||
@@ -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 {
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user