mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 10:37:56 +00:00 
			
		
		
		
	 e61bd967e3
			
		
	
	e61bd967e3
	
	
	
		
			
			* move script to scripts folder * add docfy to router and scripts * add docfy to router and scripts * fix jsdoc syntax * add component markdown files to gitignore * improve error handling for scripts * tidy up remaining jsdoc syntax * add sample jsdoc components * add known issue info * make not using multi-line components clearer * make generating docs clearer * update copy * final how to docfy cleanup * fix ts file @module syntax * fix read more syntax * make docfy typescript compatible
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /**
 | |
|  * Copyright (c) HashiCorp, Inc.
 | |
|  * SPDX-License-Identifier: BUSL-1.1
 | |
|  */
 | |
| 
 | |
| /* eslint-env node */
 | |
| 
 | |
| 'use strict';
 | |
| 
 | |
| const vault_addr = process.env.VAULT_ADDR;
 | |
| console.log('VAULT_ADDR=' + vault_addr); // eslint-disable-line
 | |
| 
 | |
| module.exports = {
 | |
|   test_page: 'tests/index.html?hidepassed',
 | |
|   tap_quiet_logs: true,
 | |
|   tap_failed_tests_only: true,
 | |
|   disable_watching: true,
 | |
|   launch_in_ci: ['Chrome'],
 | |
|   browser_start_timeout: 120,
 | |
|   browser_args: {
 | |
|     Chrome: {
 | |
|       ci: [
 | |
|         // --no-sandbox is needed when running Chrome inside a container
 | |
|         process.env.CI ? '--no-sandbox' : null,
 | |
|         '--headless',
 | |
|         '--disable-dev-shm-usage',
 | |
|         '--disable-software-rasterizer',
 | |
|         '--mute-audio',
 | |
|         '--remote-debugging-port=0',
 | |
|         '--window-size=1440,900',
 | |
|       ].filter(Boolean),
 | |
|     },
 | |
|   },
 | |
|   proxies: {
 | |
|     '/v1': {
 | |
|       target: vault_addr,
 | |
|     },
 | |
|   },
 | |
| };
 | |
| 
 | |
| if (process.env.CI) {
 | |
|   module.exports.reporter = 'xunit';
 | |
|   module.exports.report_file = 'test-results/qunit/results.xml';
 | |
|   module.exports.xunit_intermediate_output = true;
 | |
| }
 |