v0.1.3
🚀 Improvements
- add ability to specify dev server in config file (#911)
Usage example
// .testplane.conf.ts
const SERVER_PORT = 3000;
...
export default {
...
devServer: {
command: "npm run server:dev",
env: {PORT: SERVER_PORT},
readinessProbe: {
url: `http://localhost:${SERVER_PORT}/health`
}
}
}
Creates dev server with command "npm run server:dev", pass PORT
env variable and wait until its ready to receive network requests
Command could also be "node some/file.js
" or something else.