mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
feat: modernize core-tools
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable unicorn/prefer-module */
|
||||
/*
|
||||
* Copyright (C) 2018-2019 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
@@ -20,16 +21,15 @@ import {getTsconfigPath} from '../src/common';
|
||||
|
||||
process.on('unhandledRejection', (reason: unknown): void => {
|
||||
if (reason instanceof Error) {
|
||||
Logger.error('UNHANDLED REJECTION', reason.stack);
|
||||
void Logger.error('UNHANDLED REJECTION', reason.stack);
|
||||
}
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
@suite(timeout(20000), slow(10000))
|
||||
@suite(timeout(20_000), slow(10_000))
|
||||
export class CommonSpec {
|
||||
@test
|
||||
async getTsconfigPath() {
|
||||
expect(getTsconfigPath(__dirname)).to.be.equal(cwd());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user