This commit is contained in:
Henry Jameson 2026-08-04 20:38:43 +03:00
commit 88b2f89877
5 changed files with 8 additions and 8 deletions

View file

@ -10,10 +10,10 @@ const server = require('../../build/dev-server.js')
// For more information on Nightwatch's config file, see
// http://nightwatchjs.org/guide#settings-file
let opts = process.argv.slice(2)
if (opts.indexOf('--config') === -1) {
if (!opts.includes('--config')) {
opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js'])
}
if (opts.indexOf('--env') === -1) {
if (!opts.includes('--env')) {
opts = opts.concat(['--env', 'chrome'])
}