feat(test): add jest test suite

This commit is contained in:
Vben
2021-06-17 22:56:21 +08:00
parent 154ebc3d96
commit f6fe1dd62d
33 changed files with 1898 additions and 209 deletions

View File

@@ -0,0 +1,18 @@
const { name } = require('./package.json');
const path = require('path');
module.exports = {
apps: [
{
name,
script: path.resolve(__dirname, './dist/index.js'),
instances: require('os').cpus().length,
autorestart: true,
watch: true,
env_production: {
NODE_ENV: 'production',
PORT: 8080,
},
},
],
};