mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	chore(monorepo/client): reintegrate tests
This commit is contained in:
		
							parent
							
								
									12bdf5adde
								
							
						
					
					
						commit
						f0d365e336
					
				| @ -78,7 +78,6 @@ | |||||||
|     "eslint-plugin-simple-import-sort": "12.1.1", |     "eslint-plugin-simple-import-sort": "12.1.1", | ||||||
|     "esm": "3.2.25", |     "esm": "3.2.25", | ||||||
|     "globals": "16.0.0",     |     "globals": "16.0.0",     | ||||||
|     "happy-dom": "17.4.4", |  | ||||||
|     "jsdoc": "4.0.4", |     "jsdoc": "4.0.4", | ||||||
|     "lorem-ipsum": "2.0.8",     |     "lorem-ipsum": "2.0.8",     | ||||||
|     "rcedit": "4.0.1", |     "rcedit": "4.0.1", | ||||||
|  | |||||||
| @ -20,7 +20,8 @@ | |||||||
|   "type": "module", |   "type": "module", | ||||||
|   "main": "index.js", |   "main": "index.js", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|     "build:webpack": "tsx node_modules/webpack/bin/webpack.js -c webpack.config.ts" |     "build:webpack": "tsx node_modules/webpack/bin/webpack.js -c webpack.config.ts", | ||||||
|  |     "test": "vitest" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@excalidraw/excalidraw": "0.18.0", |     "@excalidraw/excalidraw": "0.18.0", | ||||||
| @ -77,6 +78,7 @@ | |||||||
|     "css-loader": "7.1.2", |     "css-loader": "7.1.2", | ||||||
|     "postcss-loader": "8.1.1",   |     "postcss-loader": "8.1.1",   | ||||||
|     "eslint-linter-browserify": "9.24.0",     |     "eslint-linter-browserify": "9.24.0",     | ||||||
|     "@eslint/js": "9.24.0" |     "@eslint/js": "9.24.0", | ||||||
|  |     "happy-dom": "17.4.4" | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ export default defineConfig({ | |||||||
|             ...configDefaults.exclude, |             ...configDefaults.exclude, | ||||||
|             "build/**", |             "build/**", | ||||||
|         ], |         ], | ||||||
|         setupFiles: ["./test/setup.ts"], |         setupFiles: ["./spec/setup.ts"], | ||||||
|         environment: "happy-dom", |         environment: "happy-dom", | ||||||
|         coverage: { |         coverage: { | ||||||
|             reporter: [ "text", "html" ], |             reporter: [ "text", "html" ], | ||||||
|  | |||||||
							
								
								
									
										25
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										25
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -48,6 +48,7 @@ | |||||||
|                 "electron": "35.1.5", |                 "electron": "35.1.5", | ||||||
|                 "eslint-linter-browserify": "9.24.0", |                 "eslint-linter-browserify": "9.24.0", | ||||||
|                 "force-graph": "1.49.5", |                 "force-graph": "1.49.5", | ||||||
|  |                 "happy-dom": "17.4.4", | ||||||
|                 "i18next": "25.0.0", |                 "i18next": "25.0.0", | ||||||
|                 "i18next-http-backend": "3.0.2", |                 "i18next-http-backend": "3.0.2", | ||||||
|                 "jquery": "3.7.1", |                 "jquery": "3.7.1", | ||||||
| @ -9337,6 +9338,30 @@ | |||||||
|             "dev": true, |             "dev": true, | ||||||
|             "license": "MIT" |             "license": "MIT" | ||||||
|         }, |         }, | ||||||
|  |         "node_modules/happy-dom": { | ||||||
|  |             "version": "17.4.4", | ||||||
|  |             "resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-17.4.4.tgz", | ||||||
|  |             "integrity": "sha512-/Pb0ctk3HTZ5xEL3BZ0hK1AqDSAUuRQitOmROPHhfUYEWpmTImwfD8vFDGADmMAX0JYgbcgxWoLFKtsWhcpuVA==", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "MIT", | ||||||
|  |             "dependencies": { | ||||||
|  |                 "webidl-conversions": "^7.0.0", | ||||||
|  |                 "whatwg-mimetype": "^3.0.0" | ||||||
|  |             }, | ||||||
|  |             "engines": { | ||||||
|  |                 "node": ">=18.0.0" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         "node_modules/happy-dom/node_modules/whatwg-mimetype": { | ||||||
|  |             "version": "3.0.0", | ||||||
|  |             "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", | ||||||
|  |             "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", | ||||||
|  |             "dev": true, | ||||||
|  |             "license": "MIT", | ||||||
|  |             "engines": { | ||||||
|  |                 "node": ">=12" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|         "node_modules/has": { |         "node_modules/has": { | ||||||
|             "version": "1.0.4", |             "version": "1.0.4", | ||||||
|             "dev": true, |             "dev": true, | ||||||
|  | |||||||
							
								
								
									
										10
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								package.json
									
									
									
									
									
								
							| @ -13,10 +13,14 @@ | |||||||
|         "packages/*" |         "packages/*" | ||||||
|     ], |     ], | ||||||
|     "scripts": { |     "scripts": { | ||||||
|         "chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts", |         "client:test": "npm --workspace=apps/client test", | ||||||
|         "chore:update-build-info": "tsx ./scripts/update-build-info.ts", |         "client:build": "npm --workspace=apps/client build:webpack", | ||||||
|  | 
 | ||||||
|         "server:test": "npm --workspace=apps/server test", |         "server:test": "npm --workspace=apps/server test", | ||||||
|         "server:coverage": "npm --workspace=apps/server coverage" |         "server:coverage": "npm --workspace=apps/server coverage", | ||||||
|  | 
 | ||||||
|  |         "chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts", | ||||||
|  |         "chore:update-build-info": "tsx ./scripts/update-build-info.ts" | ||||||
|     }, |     }, | ||||||
|     "devDependencies": { |     "devDependencies": { | ||||||
|         "tsx": "^4.19.3" |         "tsx": "^4.19.3" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran