mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	add running tests into the build process
This commit is contained in:
		
							parent
							
								
									c2789bf355
								
							
						
					
					
						commit
						b815e10ff3
					
				| @ -1,5 +1,9 @@ | ||||
| #!/usr/bin/env bash | ||||
| 
 | ||||
| echo "Running tests" | ||||
| 
 | ||||
| npm run test-all || { echo 'unit tests failed' ; exit 1; } | ||||
| 
 | ||||
| echo "Deleting existing builds" | ||||
| 
 | ||||
| rm -rf dist/* | ||||
|  | ||||
| @ -20,7 +20,8 @@ | ||||
|     "build-docs": "npm run build-backend-docs && npm run build-frontend-docs", | ||||
|     "webpack": "npx webpack -c webpack-desktop.config.js && npx webpack -c webpack-mobile.config.js && npx webpack -c webpack-setup.config.js", | ||||
|     "test": "jasmine", | ||||
|     "test-es6": "node -r esm spec-es6/attribute_parser.spec.js " | ||||
|     "test-es6": "node -r esm spec-es6/attribute_parser.spec.js ", | ||||
|     "test-all": "npm run test && npm run test-es6" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "async-mutex": "0.2.4", | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam