@codeceptjs-bootstraps
List of bootstraps for the CodeceptJS framework
Stand-alone usage.
const { waitForPort } = require('@codeceptjs-bootstraps/wait-for-port')
/* codecept.config.js */
exports.config = {
...waitForPort({
port: 3001
}),
/* ... */
}
Create a pipeline of bootstraps.
const path = require('path')
const { createPipeline } = require('@codeceptjs-bootstraps/core')
const { hostStatic } = require('@codeceptjs-bootstraps/host-static')
const { waitForPort } = require('@codeceptjs-bootstraps/wait-for-port')
const bootstraps = createPipeline([
hostStatic({
path: path.resolve('public') // path to your static files
}),
waitForPort({
port: 3001
})
])
/* codecept.config.js */
exports.config = {
...bootstraps,
/* ... */
}