vault/ui/testem.js
Vault Automation 12e793039a
[UI] - migrate to pnpm for JS package management (#11651) (#11661)
* move from yarn to pnpm for package management

* remove lodash.template patch override

* remove .yarn folder

* update GHA to use pnpm

* add @babel/plugin-proposal-decorators

* remove .yarnrc.yml

* add lock file to copywrite ignore

* add @codemirror/view as a dep for its types

* use more strict setting about peerDeps

* address some peerDep issues with ember-power-select and ember-basic-dropdown

* enable TS compilation for the kubernetes engine

* enable TS compilation in kv engine

* ignore workspace file

* use new headless mode in CI

* update enos CI scenarios

* add qs and express resolutions

* run 'pnpm up glob' and 'pnpm up js-yaml' to upgrade those packages

* run 'pnpm up preact' because posthog-js had a vulnerable install. see https://github.com/advisories/GHSA-36hm-qxxp-pg3

* add work around for browser timeout errors in test

* update other references of yarn to pnpm

Co-authored-by: Matthew Irish <39469+meirish@users.noreply.github.com>
2026-01-09 11:45:14 -06:00

48 lines
1.2 KiB
JavaScript

/**
* Copyright IBM Corp. 2016, 2025
* SPDX-License-Identifier: BUSL-1.1
*/
'use strict';
module.exports = {
test_page: 'tests/index.html?hidepassed&enableA11yAudit',
tap_quiet_logs: true,
tap_failed_tests_only: true,
disable_watching: true,
launch_in_ci: ['Chrome'],
browser_start_timeout: 120,
socket_server_options: {
maxHttpBufferSize: 1e8, // set socket.io server max buffer size to 100MB
},
browser_args: {
Chrome: {
ci: [
// --no-sandbox is needed when running Chrome inside a container
process.env.CI ? '--no-sandbox' : null,
'--headless=new',
'--disable-dev-shm-usage',
'--disable-software-rasterizer',
'--disable-search-engine-choice-screen', // needed from Chrome 127
'--mute-audio',
'--remote-debugging-port=0',
'--window-size=1440,900',
].filter(Boolean),
},
Firefox: {
ci: ['--headless'],
},
},
proxies: {
'/v1': {
target: 'http://127.0.0.1:9200',
},
},
parallel: process.env.EMBER_EXAM_SPLIT_COUNT || 1,
};
if (process.env.CI) {
module.exports.reporter = 'xunit';
module.exports.report_file = 'test-results/qunit/results.xml';
module.exports.xunit_intermediate_output = true;
}