tswow/tswow-scripts/runtime/Test.ts
tswow-admin b1fced4b8a
tswow: shell rewrite
- basic functionality reimplemented

Co-authored-by: ihm-tswow <ihm-ts@protonmail.com>
2021-11-04 20:03:42 +01:00

35 lines
1.2 KiB
TypeScript

/*
* This file is part of tswow (https://github.com/tswow)
*
* Copyright (C) 2020 tswow <https://github.com/tswow/>
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* 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 { commands } from '../util/Commands';
export namespace Test {
export function initialize() {
commands.addCommand(
'test'
, 'regex?'
, 'Runs unit tests'
, (args) => {
/*
if (args.length > 0) {
wsys.exec(`npm --settings=${settings} run otest ${args}`, 'inherit');
} else {
wsys.exec(`npm --settings=${settings} run test`, 'inherit');
}
*/
});
}
}