This commit is contained in:
syuilo 2021-11-12 12:07:37 +09:00
parent ba16810b64
commit 8fdbac4b48
35 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
"cy:open": "cypress open", "cy:open": "cypress open",
"cy:run": "cypress run", "cy:run": "cypress run",
"e2e": "start-server-and-test start:test http://localhost:61812 cy:run", "e2e": "start-server-and-test start:test http://localhost:61812 cy:run",
"mocha": "cd packages/backend && cross-env TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha", "mocha": "cd packages/backend && cross-env TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" npx mocha",
"test": "npm run mocha", "test": "npm run mocha",
"format": "gulp format", "format": "gulp format",
"clean": "node ./scripts/clean.js" "clean": "node ./scripts/clean.js"

View File

@ -179,7 +179,7 @@ export function startServer(timeout = 30 * 1000): Promise<childProcess.ChildProc
rej('timeout to start'); rej('timeout to start');
}, timeout); }, timeout);
const p = childProcess.spawn('node', [__dirname + '/../index.js'], { const p = childProcess.spawn('node', [__dirname + '/../built/index.js'], {
stdio: ['inherit', 'inherit', 'inherit', 'ipc'], stdio: ['inherit', 'inherit', 'inherit', 'ipc'],
env: { NODE_ENV: 'test', PATH: process.env.PATH } env: { NODE_ENV: 'test', PATH: process.env.PATH }
}); });