Use NODE_ENV to test for test environment; improve scripts

This commit is contained in:
2024-05-02 09:40:05 -07:00
parent e639bedadc
commit d2c218f72d
5 changed files with 19 additions and 20 deletions

View File

@@ -2,7 +2,7 @@ console.log("\nSpawning server process...");
const { spawn } = require("child_process");
module.exports = async function () {
const child = spawn("node", ["dev-server.cjs", "--test"]);
const child = spawn("node", ["server.cjs"]);
child.stdout.on('data', (data) => {
console.log(`${data}`);