Add HTTP tests to npm test command

This commit is contained in:
Jeremy Ruston 2024-03-13 18:39:42 +00:00
parent b923be5e94
commit 3da773c27f
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,34 @@
/*\
title: $:/core/modules/commands/quit.js
type: application/javascript
module-type: command
Immediately ends the TiddlyWiki process
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.info = {
name: "quit",
synchronous: true
};
var Command = function(params,commander,callback) {
var self = this;
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
process.exit();
return null;
};
exports.Command = Command;
})();

View File

@ -32,7 +32,7 @@
},
"scripts": {
"start": "node ./tiddlywiki.js ./editions/multiwikiserver --listen",
"test": "node ./tiddlywiki.js ./editions/test --verbose --version --build index",
"test": "node ./tiddlywiki.js ./editions/test --verbose --version --build index && node ./tiddlywiki ./editions/multiwikiserver/ --listen debug-level=full --mws-test-server http://127.0.0.1:8080/ --quit",
"lint:fix": "eslint . --fix",
"lint": "eslint ."
},