feat: add Jest testing framework and CI/CD configuration (#187)

Co-authored-by: samanhappy@qq.com <my6051199>
This commit is contained in:
samanhappy
2025-06-18 14:02:52 +08:00
committed by GitHub
parent 1bd4fd6d9c
commit 1e308ec4c5
19 changed files with 1332 additions and 41 deletions

View File

@@ -56,7 +56,7 @@ export const loadRuntimeConfig = async (): Promise<RuntimeConfig> => {
const currentPath = window.location.pathname;
const possibleConfigPaths = [
// If we're already on a subpath, try to use it
currentPath.replace(/\/[^\/]*$/, '') + '/config',
currentPath.replace(/\/[^/]*$/, '') + '/config',
// Try root config
'/config',
// Try with potential base paths