fix tests

This commit is contained in:
Rich Harris
2018-05-03 23:23:02 -04:00
parent 1a5364ae9d
commit f4eac2515f
2 changed files with 1 additions and 8 deletions

View File

@@ -1,7 +0,0 @@
// generated by sapper build at 2018-05-04T03:03:00.914Z
process.env.NODE_ENV = process.env.NODE_ENV || 'production';
process.env.SAPPER_DEST = require('path').resolve(__dirname, 'build');
process.env.PORT = process.env.PORT || 3000;
console.log('Starting server on port ' + process.env.PORT);
require('./build/server.js');

View File

@@ -163,7 +163,7 @@ function run({ mode, basepath = '' }) {
const dir = mode === 'production' ? 'build' : '.sapper';
if (mode === 'production') {
assert.ok(fs.existsSync('start.js'));
assert.ok(fs.existsSync('build/index.js'));
}
proc = require('child_process').fork(`${dir}/server.js`, {