mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +01:00 
			
		
		
		
	integration-test: Disable WAL for cleaner commits
This commit is contained in:
		
							parent
							
								
									c2e7ccddb4
								
							
						
					
					
						commit
						5aa0040a83
					
				
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -45,7 +45,7 @@ | |||||||
|     "prepare-dist": "rimraf ./dist && tsc && tsx ./bin/copy-dist.ts", |     "prepare-dist": "rimraf ./dist && tsc && tsx ./bin/copy-dist.ts", | ||||||
|     "update-build-info": "tsx bin/update-build-info.ts", |     "update-build-info": "tsx bin/update-build-info.ts", | ||||||
|     "errors": "tsc --watch --noEmit", |     "errors": "tsc --watch --noEmit", | ||||||
|     "integration-edit-db": "cross-env TRILIUM_PORT=8081 TRILIUM_DATA_DIR=./integration-tests/db nodemon src/www.ts" |     "integration-edit-db": "cross-env TRILIUM_INTEGRATION_TEST=edit TRILIUM_PORT=8081 TRILIUM_DATA_DIR=./integration-tests/db nodemon src/www.ts" | ||||||
|   }, |   }, | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "@braintree/sanitize-url": "^7.1.0", |     "@braintree/sanitize-url": "^7.1.0", | ||||||
|  | |||||||
| @ -15,7 +15,9 @@ import becca_loader from "../becca/becca_loader.js"; | |||||||
| import entity_changes from "./entity_changes.js"; | import entity_changes from "./entity_changes.js"; | ||||||
| 
 | 
 | ||||||
| const dbConnection: DatabaseType = new Database(dataDir.DOCUMENT_PATH); | const dbConnection: DatabaseType = new Database(dataDir.DOCUMENT_PATH); | ||||||
|  | if (!process.env.TRILIUM_INTEGRATION_TEST) { | ||||||
|     dbConnection.pragma('journal_mode = WAL'); |     dbConnection.pragma('journal_mode = WAL'); | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| const LOG_ALL_QUERIES = false; | const LOG_ALL_QUERIES = false; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran