diff --git a/core/alerts/alerts-api/package.json b/core/alerts/alerts-api/package.json index 48f54d362..aabe7f713 100644 --- a/core/alerts/alerts-api/package.json +++ b/core/alerts/alerts-api/package.json @@ -19,12 +19,14 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "vue": "3.5.13" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/alerts/alerts-api/vitest.config.ts b/core/alerts/alerts-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/alerts/alerts-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/alerts/alerts-default/package.json b/core/alerts/alerts-default/package.json index e0c78dd0d..bd8ea5fe1 100644 --- a/core/alerts/alerts-default/package.json +++ b/core/alerts/alerts-default/package.json @@ -19,11 +19,12 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { - "@xwiki/cristal-api": "workspace:*", "@xwiki/cristal-alerts-api": "workspace:*", + "@xwiki/cristal-api": "workspace:*", "inversify": "6.2.0", "pinia": "2.3.0", "vue": "3.5.13" @@ -32,6 +33,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/alerts/alerts-default/vitest.config.ts b/core/alerts/alerts-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/alerts/alerts-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/alerts/alerts-ui/package.json b/core/alerts/alerts-ui/package.json index 0b4be3e6e..6616137fc 100644 --- a/core/alerts/alerts-ui/package.json +++ b/core/alerts/alerts-ui/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "vue-tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-alerts-api": "workspace:*", @@ -33,6 +34,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3", diff --git a/core/alerts/alerts-ui/vitest.config.ts b/core/alerts/alerts-ui/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/alerts/alerts-ui/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/attachments/attachments-api/package.json b/core/attachments/attachments-api/package.json index 6a8c5d3e7..10b73e47f 100644 --- a/core/attachments/attachments-api/package.json +++ b/core/attachments/attachments-api/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-authentication-api": "workspace:*", @@ -27,6 +28,7 @@ "vue": "3.5.13" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/attachments/attachments-api/vitest.config.ts b/core/attachments/attachments-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/attachments/attachments-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/attachments/attachments-default/package.json b/core/attachments/attachments-default/package.json index af44aa881..5180d46dd 100644 --- a/core/attachments/attachments-default/package.json +++ b/core/attachments/attachments-default/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-attachments-api": "workspace:*", @@ -36,6 +37,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/attachments/attachments-default/vitest.config.ts b/core/attachments/attachments-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/attachments/attachments-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/attachments/attachments-ui/package.json b/core/attachments/attachments-ui/package.json index 424ae2a59..cd5f53687 100644 --- a/core/attachments/attachments-ui/package.json +++ b/core/attachments/attachments-ui/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "vue-tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-alerts-api": "workspace:*", diff --git a/core/authentication/authentication-api/package.json b/core/authentication/authentication-api/package.json index e81abc42d..0e501aef0 100644 --- a/core/authentication/authentication-api/package.json +++ b/core/authentication/authentication-api/package.json @@ -20,12 +20,14 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "peerDependencies": { "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/authentication/authentication-api/vitest.config.ts b/core/authentication/authentication-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/authentication/authentication-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/authentication/authentication-default/package.json b/core/authentication/authentication-default/package.json index 5efceed3d..c7d222227 100644 --- a/core/authentication/authentication-default/package.json +++ b/core/authentication/authentication-default/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -31,6 +32,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/authentication/authentication-default/vitest.config.ts b/core/authentication/authentication-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/authentication/authentication-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/authentication/authentication-nextcloud/package.json b/core/authentication/authentication-nextcloud/package.json index 24a22b7a0..e14422d1f 100644 --- a/core/authentication/authentication-nextcloud/package.json +++ b/core/authentication/authentication-nextcloud/package.json @@ -20,9 +20,11 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/authentication/authentication-nextcloud/vitest.config.ts b/core/authentication/authentication-nextcloud/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/authentication/authentication-nextcloud/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/authentication/authentication-xwiki/package.json b/core/authentication/authentication-xwiki/package.json index 77cd5b123..ba21a27ea 100644 --- a/core/authentication/authentication-xwiki/package.json +++ b/core/authentication/authentication-xwiki/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -34,6 +35,7 @@ }, "devDependencies": { "@types/js-cookie": "3.0.6", + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/authentication/authentication-xwiki/vitest.config.ts b/core/authentication/authentication-xwiki/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/authentication/authentication-xwiki/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/backends/backend-api/package.json b/core/backends/backend-api/package.json index 1a2a0b668..15a9f7364 100644 --- a/core/backends/backend-api/package.json +++ b/core/backends/backend-api/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -29,6 +30,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/backends/backend-api/vitest.config.ts b/core/backends/backend-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/backends/backend-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/backends/backend-dexie/package.json b/core/backends/backend-dexie/package.json index d7a2f5d86..7d0f41baa 100644 --- a/core/backends/backend-dexie/package.json +++ b/core/backends/backend-dexie/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -32,6 +33,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/backends/backend-dexie/vitest.config.ts b/core/backends/backend-dexie/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/backends/backend-dexie/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/backends/backend-github/package.json b/core/backends/backend-github/package.json index e20bf593c..51a70919e 100644 --- a/core/backends/backend-github/package.json +++ b/core/backends/backend-github/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -30,6 +31,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/backends/backend-github/vitest.config.ts b/core/backends/backend-github/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/backends/backend-github/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/backends/backend-nextcloud/package.json b/core/backends/backend-nextcloud/package.json index 55c844c0b..72c14754f 100644 --- a/core/backends/backend-nextcloud/package.json +++ b/core/backends/backend-nextcloud/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -32,6 +33,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/backends/backend-nextcloud/vitest.config.ts b/core/backends/backend-nextcloud/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/backends/backend-nextcloud/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/browser/browser-api/package.json b/core/browser/browser-api/package.json index 3958b11bf..f15d79f36 100644 --- a/core/browser/browser-api/package.json +++ b/core/browser/browser-api/package.json @@ -19,12 +19,14 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/browser/browser-api/vitest.config.ts b/core/browser/browser-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/browser/browser-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/browser/browser-default/package.json b/core/browser/browser-default/package.json index f31607ee6..0428530dc 100644 --- a/core/browser/browser-default/package.json +++ b/core/browser/browser-default/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -30,6 +31,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/browser/browser-default/vitest.config.ts b/core/browser/browser-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/browser/browser-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/date/date-api/package.json b/core/date/date-api/package.json index cd3e02085..27bb07338 100644 --- a/core/date/date-api/package.json +++ b/core/date/date-api/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "dayjs": "1.11.13", @@ -29,6 +30,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/date/date-api/vitest.config.ts b/core/date/date-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/date/date-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/date/date-ui/package.json b/core/date/date-ui/package.json index 9f08b04ff..15149c12b 100644 --- a/core/date/date-ui/package.json +++ b/core/date/date-ui/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "vue-tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -27,6 +28,7 @@ "vue": "3.5.13" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3", "vue-tsc": "2.1.10" diff --git a/core/date/date-ui/vitest.config.ts b/core/date/date-ui/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/date/date-ui/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/document/document-api/package.json b/core/document/document-api/package.json index ae392c7ac..93a14903a 100644 --- a/core/document/document-api/package.json +++ b/core/document/document-api/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -27,6 +28,7 @@ "vue": "3.5.13" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/document/document-api/vitest.config.ts b/core/document/document-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/document/document-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/document/document-default/package.json b/core/document/document-default/package.json index 2a0af2432..511ccf276 100644 --- a/core/document/document-default/package.json +++ b/core/document/document-default/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", diff --git a/core/extra-tabs/extra-tabs-api/package.json b/core/extra-tabs/extra-tabs-api/package.json index fca8a2012..f9c3c9da5 100644 --- a/core/extra-tabs/extra-tabs-api/package.json +++ b/core/extra-tabs/extra-tabs-api/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "inversify": "6.2.0", @@ -30,6 +31,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/extra-tabs/extra-tabs-api/vitest.config.ts b/core/extra-tabs/extra-tabs-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/extra-tabs/extra-tabs-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/extra-tabs/extra-tabs-default/package.json b/core/extra-tabs/extra-tabs-default/package.json index 71fcaa2a2..3eaacee7b 100644 --- a/core/extra-tabs/extra-tabs-default/package.json +++ b/core/extra-tabs/extra-tabs-default/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-extra-tabs-api": "workspace:*", @@ -31,6 +32,7 @@ }, "devDependencies": { "@types/lodash": "4.17.13", + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/extra-tabs/extra-tabs-default/vitest.config.ts b/core/extra-tabs/extra-tabs-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/extra-tabs/extra-tabs-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/extra-tabs/extra-tabs-ui/package.json b/core/extra-tabs/extra-tabs-ui/package.json index b29767743..a856426b9 100644 --- a/core/extra-tabs/extra-tabs-ui/package.json +++ b/core/extra-tabs/extra-tabs-ui/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "vue-tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -27,6 +28,7 @@ "vue": "3.5.13" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3", "vue-tsc": "2.1.10" diff --git a/core/extra-tabs/extra-tabs-ui/vitest.config.ts b/core/extra-tabs/extra-tabs-ui/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/extra-tabs/extra-tabs-ui/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/file-preview/file-preview-ui/package.json b/core/file-preview/file-preview-ui/package.json index 438cb0638..4eb840a4c 100644 --- a/core/file-preview/file-preview-ui/package.json +++ b/core/file-preview/file-preview-ui/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "vue-tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-attachments-api": "workspace:*", @@ -28,6 +29,7 @@ "vue-i18n": "10.0.5" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3", "vue-tsc": "2.1.10" diff --git a/core/file-preview/file-preview-ui/vitest.config.ts b/core/file-preview/file-preview-ui/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/file-preview/file-preview-ui/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/hierarchy/hierarchy-api/package.json b/core/hierarchy/hierarchy-api/package.json index 007e8327a..04108b113 100644 --- a/core/hierarchy/hierarchy-api/package.json +++ b/core/hierarchy/hierarchy-api/package.json @@ -19,12 +19,14 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/hierarchy/hierarchy-api/vitest.config.ts b/core/hierarchy/hierarchy-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/hierarchy/hierarchy-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/hierarchy/hierarchy-default/package.json b/core/hierarchy/hierarchy-default/package.json index 6d06a9e09..c2f832d86 100644 --- a/core/hierarchy/hierarchy-default/package.json +++ b/core/hierarchy/hierarchy-default/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -30,6 +31,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/hierarchy/hierarchy-default/vitest.config.ts b/core/hierarchy/hierarchy-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/hierarchy/hierarchy-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/hierarchy/hierarchy-filesystem/package.json b/core/hierarchy/hierarchy-filesystem/package.json index b69000e19..54506248f 100644 --- a/core/hierarchy/hierarchy-filesystem/package.json +++ b/core/hierarchy/hierarchy-filesystem/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -31,6 +32,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/hierarchy/hierarchy-filesystem/vitest.config.ts b/core/hierarchy/hierarchy-filesystem/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/hierarchy/hierarchy-filesystem/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/hierarchy/hierarchy-github/package.json b/core/hierarchy/hierarchy-github/package.json index 73fe140dc..c9c217568 100644 --- a/core/hierarchy/hierarchy-github/package.json +++ b/core/hierarchy/hierarchy-github/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -30,6 +31,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/hierarchy/hierarchy-github/vitest.config.ts b/core/hierarchy/hierarchy-github/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/hierarchy/hierarchy-github/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/hierarchy/hierarchy-nextcloud/package.json b/core/hierarchy/hierarchy-nextcloud/package.json index 04f3c3590..861b0abb5 100644 --- a/core/hierarchy/hierarchy-nextcloud/package.json +++ b/core/hierarchy/hierarchy-nextcloud/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -31,6 +32,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/hierarchy/hierarchy-nextcloud/vitest.config.ts b/core/hierarchy/hierarchy-nextcloud/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/hierarchy/hierarchy-nextcloud/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/hierarchy/hierarchy-xwiki/package.json b/core/hierarchy/hierarchy-xwiki/package.json index 12bafb0da..620d81122 100644 --- a/core/hierarchy/hierarchy-xwiki/package.json +++ b/core/hierarchy/hierarchy-xwiki/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -37,6 +38,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/hierarchy/hierarchy-xwiki/vitest.config.ts b/core/hierarchy/hierarchy-xwiki/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/hierarchy/hierarchy-xwiki/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/history/history-api/package.json b/core/history/history-api/package.json index c56a5f60b..955ee6018 100644 --- a/core/history/history-api/package.json +++ b/core/history/history-api/package.json @@ -20,13 +20,15 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", "@xwiki/cristal-authentication-api": "workspace:*" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/history/history-api/vitest.config.ts b/core/history/history-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/history/history-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/history/history-default/package.json b/core/history/history-default/package.json index 919c11253..33194f47c 100644 --- a/core/history/history-default/package.json +++ b/core/history/history-default/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -31,6 +32,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/history/history-default/vitest.config.ts b/core/history/history-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/history/history-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/history/history-github/package.json b/core/history/history-github/package.json index 5b4166c16..3415b7eff 100644 --- a/core/history/history-github/package.json +++ b/core/history/history-github/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-alerts-api": "workspace:*", @@ -32,6 +33,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/history/history-github/vitest.config.ts b/core/history/history-github/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/history/history-github/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/history/history-ui/package.json b/core/history/history-ui/package.json index e53b98a55..1482f06ca 100644 --- a/core/history/history-ui/package.json +++ b/core/history/history-ui/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "vue-tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -38,6 +39,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3", diff --git a/core/history/history-ui/vitest.config.ts b/core/history/history-ui/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/history/history-ui/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/history/history-xwiki/package.json b/core/history/history-xwiki/package.json index 7b630483a..59d35a5e1 100644 --- a/core/history/history-xwiki/package.json +++ b/core/history/history-xwiki/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-alerts-api": "workspace:*", @@ -34,6 +35,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/history/history-xwiki/vitest.config.ts b/core/history/history-xwiki/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/history/history-xwiki/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/info-actions/info-actions-api/package.json b/core/info-actions/info-actions-api/package.json index b6118789e..9803324e4 100644 --- a/core/info-actions/info-actions-api/package.json +++ b/core/info-actions/info-actions-api/package.json @@ -20,12 +20,14 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "vue": "3.5.13" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/info-actions/info-actions-api/vitest.config.ts b/core/info-actions/info-actions-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/info-actions/info-actions-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/info-actions/info-actions-default/package.json b/core/info-actions/info-actions-default/package.json index 41bcff225..df6133261 100644 --- a/core/info-actions/info-actions-default/package.json +++ b/core/info-actions/info-actions-default/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-info-actions-api": "workspace:*", @@ -32,6 +33,7 @@ }, "devDependencies": { "@types/lodash": "4.17.13", + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/info-actions/info-actions-default/vitest.config.ts b/core/info-actions/info-actions-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/info-actions/info-actions-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/link-suggest/link-suggest-api/package.json b/core/link-suggest/link-suggest-api/package.json index c287ec30a..ec134f94d 100644 --- a/core/link-suggest/link-suggest-api/package.json +++ b/core/link-suggest/link-suggest-api/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -30,6 +31,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/link-suggest/link-suggest-api/vitest.config.ts b/core/link-suggest/link-suggest-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/link-suggest/link-suggest-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/link-suggest/link-suggest-nextcloud/package.json b/core/link-suggest/link-suggest-nextcloud/package.json index 4457a1bce..f5b477f2e 100644 --- a/core/link-suggest/link-suggest-nextcloud/package.json +++ b/core/link-suggest/link-suggest-nextcloud/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -34,6 +35,7 @@ }, "devDependencies": { "@types/xml-escape": "1.1.3", + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/link-suggest/link-suggest-nextcloud/vitest.config.ts b/core/link-suggest/link-suggest-nextcloud/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/link-suggest/link-suggest-nextcloud/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/link-suggest/link-suggest-xwiki/package.json b/core/link-suggest/link-suggest-xwiki/package.json index d5fd7afb5..9c05fc968 100644 --- a/core/link-suggest/link-suggest-xwiki/package.json +++ b/core/link-suggest/link-suggest-xwiki/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -34,6 +35,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/link-suggest/link-suggest-xwiki/vitest.config.ts b/core/link-suggest/link-suggest-xwiki/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/link-suggest/link-suggest-xwiki/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/markdown/markdown-api/package.json b/core/markdown/markdown-api/package.json index 31cdc451a..d3feeccd4 100644 --- a/core/markdown/markdown-api/package.json +++ b/core/markdown/markdown-api/package.json @@ -20,9 +20,14 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" + }, + "dependencies": { + "@xwiki/cristal-document-api": "workspace:*" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, @@ -36,8 +41,5 @@ }, "main": "./dist/index.es.js", "types": "./dist/index.d.ts" - }, - "dependencies": { - "@xwiki/cristal-document-api": "workspace:*" } } diff --git a/core/markdown/markdown-api/vitest.config.ts b/core/markdown/markdown-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/markdown/markdown-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/markdown/markdown-default/package.json b/core/markdown/markdown-default/package.json index 520f72d58..5b3572700 100644 --- a/core/markdown/markdown-default/package.json +++ b/core/markdown/markdown-default/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-markdown-api": "workspace:*", @@ -35,6 +36,7 @@ }, "devDependencies": { "@types/markdown-it": "14.1.2", + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/markdown/markdown-default/vitest.config.ts b/core/markdown/markdown-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/markdown/markdown-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/model/model-api/package.json b/core/model/model-api/package.json index 229dcd53a..7bb0ea6e1 100644 --- a/core/model/model-api/package.json +++ b/core/model/model-api/package.json @@ -20,9 +20,11 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/model/model-api/vitest.config.ts b/core/model/model-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/model/model-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/model/model-click-listener/package.json b/core/model/model-click-listener/package.json index 13c2bf7ae..9d09e405b 100644 --- a/core/model/model-click-listener/package.json +++ b/core/model/model-click-listener/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -34,6 +35,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/model/model-click-listener/vitest.config.ts b/core/model/model-click-listener/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/model/model-click-listener/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/model/model-local-url/package.json b/core/model/model-local-url/package.json index 1f54e34d6..adb65adeb 100644 --- a/core/model/model-local-url/package.json +++ b/core/model/model-local-url/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-model-api": "workspace:*", @@ -30,6 +31,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3", diff --git a/core/model/model-local-url/vitest.config.ts b/core/model/model-local-url/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/model/model-local-url/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/model/model-reference/model-reference-api/package.json b/core/model/model-reference/model-reference-api/package.json index f7c8ee1c3..33f9ad286 100644 --- a/core/model/model-reference/model-reference-api/package.json +++ b/core/model/model-reference/model-reference-api/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -31,6 +32,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/model/model-reference/model-reference-api/vitest.config.ts b/core/model/model-reference/model-reference-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/model/model-reference/model-reference-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/model/model-reference/model-reference-filesystem/package.json b/core/model/model-reference/model-reference-filesystem/package.json index c431f74ff..e2ca2e643 100644 --- a/core/model/model-reference/model-reference-filesystem/package.json +++ b/core/model/model-reference/model-reference-filesystem/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-model-api": "workspace:*", @@ -31,6 +32,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/model/model-reference/model-reference-filesystem/vitest.config.ts b/core/model/model-reference/model-reference-filesystem/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/model/model-reference/model-reference-filesystem/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/model/model-reference/model-reference-nextcloud/package.json b/core/model/model-reference/model-reference-nextcloud/package.json index c7cbef4df..dea82cb19 100644 --- a/core/model/model-reference/model-reference-nextcloud/package.json +++ b/core/model/model-reference/model-reference-nextcloud/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-model-api": "workspace:*", @@ -31,6 +32,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/model/model-reference/model-reference-nextcloud/vitest.config.ts b/core/model/model-reference/model-reference-nextcloud/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/model/model-reference/model-reference-nextcloud/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/model/model-remote-url/model-remote-url-api/package.json b/core/model/model-remote-url/model-remote-url-api/package.json index 0b525d5ee..8ca292964 100644 --- a/core/model/model-remote-url/model-remote-url-api/package.json +++ b/core/model/model-remote-url/model-remote-url-api/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -31,6 +32,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/model/model-remote-url/model-remote-url-api/vitest.config.ts b/core/model/model-remote-url/model-remote-url-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/model/model-remote-url/model-remote-url-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-api/package.json b/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-api/package.json index c91788d43..50e3105a9 100644 --- a/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-api/package.json +++ b/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-api/package.json @@ -20,9 +20,11 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-api/vitest.config.ts b/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-default/package.json b/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-default/package.json index bc3607cb1..4acef5aa3 100644 --- a/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-default/package.json +++ b/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-default/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-model-api": "workspace:*", @@ -32,6 +33,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-default/vitest.config.ts b/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/model/model-remote-url/model-remote-url-nextcloud/package.json b/core/model/model-remote-url/model-remote-url-nextcloud/package.json index 14f1e2463..82350a6f6 100644 --- a/core/model/model-remote-url/model-remote-url-nextcloud/package.json +++ b/core/model/model-remote-url/model-remote-url-nextcloud/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -33,6 +34,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/model/model-remote-url/model-remote-url-nextcloud/vitest.config.ts b/core/model/model-remote-url/model-remote-url-nextcloud/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/model/model-remote-url/model-remote-url-nextcloud/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/model/model-remote-url/model-remote-url-xwiki/package.json b/core/model/model-remote-url/model-remote-url-xwiki/package.json index 6658e225c..9a1a3d2f6 100644 --- a/core/model/model-remote-url/model-remote-url-xwiki/package.json +++ b/core/model/model-remote-url/model-remote-url-xwiki/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -32,6 +33,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/model/model-remote-url/model-remote-url-xwiki/vitest.config.ts b/core/model/model-remote-url/model-remote-url-xwiki/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/model/model-remote-url/model-remote-url-xwiki/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/navigation-tree/navigation-tree-api/package.json b/core/navigation-tree/navigation-tree-api/package.json index d4651666d..7021c6fe6 100644 --- a/core/navigation-tree/navigation-tree-api/package.json +++ b/core/navigation-tree/navigation-tree-api/package.json @@ -20,13 +20,15 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", "@xwiki/cristal-model-api": "workspace:*" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/navigation-tree/navigation-tree-api/vitest.config.ts b/core/navigation-tree/navigation-tree-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/navigation-tree/navigation-tree-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/navigation-tree/navigation-tree-default/package.json b/core/navigation-tree/navigation-tree-default/package.json index 09276b35b..6948826df 100644 --- a/core/navigation-tree/navigation-tree-default/package.json +++ b/core/navigation-tree/navigation-tree-default/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -31,6 +32,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/navigation-tree/navigation-tree-default/vitest.config.ts b/core/navigation-tree/navigation-tree-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/navigation-tree/navigation-tree-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/navigation-tree/navigation-tree-filesystem/package.json b/core/navigation-tree/navigation-tree-filesystem/package.json index 52a239e05..837c0c02a 100644 --- a/core/navigation-tree/navigation-tree-filesystem/package.json +++ b/core/navigation-tree/navigation-tree-filesystem/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -34,6 +35,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/navigation-tree/navigation-tree-filesystem/vitest.config.ts b/core/navigation-tree/navigation-tree-filesystem/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/navigation-tree/navigation-tree-filesystem/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/navigation-tree/navigation-tree-github/package.json b/core/navigation-tree/navigation-tree-github/package.json index c210dd67c..8570bfe24 100644 --- a/core/navigation-tree/navigation-tree-github/package.json +++ b/core/navigation-tree/navigation-tree-github/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -33,6 +34,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/navigation-tree/navigation-tree-github/vitest.config.ts b/core/navigation-tree/navigation-tree-github/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/navigation-tree/navigation-tree-github/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/navigation-tree/navigation-tree-nextcloud/package.json b/core/navigation-tree/navigation-tree-nextcloud/package.json index 5a907e64b..1786bf967 100644 --- a/core/navigation-tree/navigation-tree-nextcloud/package.json +++ b/core/navigation-tree/navigation-tree-nextcloud/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -34,6 +35,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/navigation-tree/navigation-tree-nextcloud/vitest.config.ts b/core/navigation-tree/navigation-tree-nextcloud/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/navigation-tree/navigation-tree-nextcloud/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/navigation-tree/navigation-tree-xwiki/package.json b/core/navigation-tree/navigation-tree-xwiki/package.json index 39edffcf7..e943185af 100644 --- a/core/navigation-tree/navigation-tree-xwiki/package.json +++ b/core/navigation-tree/navigation-tree-xwiki/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -35,6 +36,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/navigation-tree/navigation-tree-xwiki/vitest.config.ts b/core/navigation-tree/navigation-tree-xwiki/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/navigation-tree/navigation-tree-xwiki/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/page-actions/page-actions-api/package.json b/core/page-actions/page-actions-api/package.json index 7c3932c3a..41ca58d9a 100644 --- a/core/page-actions/page-actions-api/package.json +++ b/core/page-actions/page-actions-api/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "inversify": "6.2.0", @@ -30,6 +31,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/page-actions/page-actions-api/vitest.config.ts b/core/page-actions/page-actions-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/page-actions/page-actions-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/page-actions/page-actions-default/package.json b/core/page-actions/page-actions-default/package.json index 2c68e8e9a..04aa25bb8 100644 --- a/core/page-actions/page-actions-default/package.json +++ b/core/page-actions/page-actions-default/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-page-actions-api": "workspace:*", @@ -31,6 +32,7 @@ }, "devDependencies": { "@types/lodash": "4.17.13", + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/page-actions/page-actions-default/vitest.config.ts b/core/page-actions/page-actions-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/page-actions/page-actions-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/page-actions/page-actions-ui/package.json b/core/page-actions/page-actions-ui/package.json index b0cf65681..1ddf63aec 100644 --- a/core/page-actions/page-actions-ui/package.json +++ b/core/page-actions/page-actions-ui/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "vue-tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-alerts-api": "workspace:*", @@ -37,6 +38,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3", diff --git a/core/page-actions/page-actions-ui/vitest.config.ts b/core/page-actions/page-actions-ui/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/page-actions/page-actions-ui/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/tiptap-extensions/tiptap-extension-image/package.json b/core/tiptap-extensions/tiptap-extension-image/package.json index d0be5d511..5ea796248 100644 --- a/core/tiptap-extensions/tiptap-extension-image/package.json +++ b/core/tiptap-extensions/tiptap-extension-image/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "vue-tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@tiptap/extension-image": "2.10.3", @@ -47,6 +48,7 @@ "devDependencies": { "@tiptap/core": "2.10.3", "@types/lodash": "4.17.13", + "@xwiki/cristal-dev-config": "workspace:*", "vue": "3.5.13", "vue-tsc": "2.1.10" }, diff --git a/core/tiptap-extensions/tiptap-extension-image/vitest.config.ts b/core/tiptap-extensions/tiptap-extension-image/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/tiptap-extensions/tiptap-extension-image/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/tiptap-extensions/tiptap-link-suggest-ui/package.json b/core/tiptap-extensions/tiptap-link-suggest-ui/package.json index 0093b1222..77b231198 100644 --- a/core/tiptap-extensions/tiptap-link-suggest-ui/package.json +++ b/core/tiptap-extensions/tiptap-link-suggest-ui/package.json @@ -19,7 +19,8 @@ "main": "./src/index.ts", "scripts": { "build": "vue-tsc --project tsconfig.json && vite build", - "lint": "eslint \"./src/**/*.{ts,tsx}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-icons": "workspace:*", @@ -31,6 +32,7 @@ "vue": "3.5.13" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "vue": "3.5.13", "vue-tsc": "2.1.10" }, diff --git a/core/tiptap-extensions/tiptap-link-suggest-ui/vitest.config.ts b/core/tiptap-extensions/tiptap-link-suggest-ui/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/tiptap-extensions/tiptap-link-suggest-ui/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/uiextension/uiextension-api/package.json b/core/uiextension/uiextension-api/package.json index d2d3efdf4..f93407155 100644 --- a/core/uiextension/uiextension-api/package.json +++ b/core/uiextension/uiextension-api/package.json @@ -20,12 +20,14 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "vue": "3.5.13" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/core/uiextension/uiextension-api/vitest.config.ts b/core/uiextension/uiextension-api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/uiextension/uiextension-api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/uiextension/uiextension-default/package.json b/core/uiextension/uiextension-default/package.json index da82542c2..c6573ddc5 100644 --- a/core/uiextension/uiextension-default/package.json +++ b/core/uiextension/uiextension-default/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-uiextension-api": "workspace:*", @@ -32,6 +33,7 @@ }, "devDependencies": { "@types/lodash": "4.17.13", + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/core/uiextension/uiextension-default/vitest.config.ts b/core/uiextension/uiextension-default/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/uiextension/uiextension-default/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/uiextension/uiextension-ui/package.json b/core/uiextension/uiextension-ui/package.json index 73afb031e..6b73b6f46 100644 --- a/core/uiextension/uiextension-ui/package.json +++ b/core/uiextension/uiextension-ui/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "vue-tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -28,6 +29,7 @@ "vue": "3.5.13" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3", "vue-tsc": "2.1.10" diff --git a/core/uiextension/uiextension-ui/vitest.config.ts b/core/uiextension/uiextension-ui/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/core/uiextension/uiextension-ui/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/core/user/user-ui/package.json b/core/user/user-ui/package.json index 804603c59..6ead365fa 100644 --- a/core/user/user-ui/package.json +++ b/core/user/user-ui/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "vue-tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-authentication-api": "workspace:*", diff --git a/dev/config/vitest.config.js b/dev/config/vitest.config.js index dc89191a9..2c21deec1 100644 --- a/dev/config/vitest.config.js +++ b/dev/config/vitest.config.js @@ -24,5 +24,6 @@ export default defineConfig({ test: { reporters: ["junit"], outputFile: "unit-tests.xml", + passWithNoTests: true, }, }); diff --git a/ds/api/package.json b/ds/api/package.json index a0afe2153..3dd23fe9d 100644 --- a/ds/api/package.json +++ b/ds/api/package.json @@ -20,9 +20,11 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/ds/api/vitest.config.ts b/ds/api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/ds/api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/electron/authentication/authentication-xwiki/authentication-xwiki-main/package.json b/electron/authentication/authentication-xwiki/authentication-xwiki-main/package.json index f0ddc1135..eb66d634b 100644 --- a/electron/authentication/authentication-xwiki/authentication-xwiki-main/package.json +++ b/electron/authentication/authentication-xwiki/authentication-xwiki-main/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-authentication-api": "workspace:*", @@ -31,6 +32,7 @@ "electron": "33.2.1" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/electron/authentication/authentication-xwiki/authentication-xwiki-main/vitest.config.ts b/electron/authentication/authentication-xwiki/authentication-xwiki-main/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/electron/authentication/authentication-xwiki/authentication-xwiki-main/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/electron/authentication/authentication-xwiki/authentication-xwiki-preload/package.json b/electron/authentication/authentication-xwiki/authentication-xwiki-preload/package.json index b6d69cfd1..d23cb0c8e 100644 --- a/electron/authentication/authentication-xwiki/authentication-xwiki-preload/package.json +++ b/electron/authentication/authentication-xwiki/authentication-xwiki-preload/package.json @@ -12,7 +12,7 @@ "bugs": { "url": "https://jira.xwiki.org/projects/CRISTAL/" }, - "type": "commonjs", + "type": "module", "exports": { ".": "./src/index.ts" }, @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-authentication-api": "workspace:*" @@ -29,6 +30,7 @@ "electron": "33.2.1" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/electron/authentication/authentication-xwiki/authentication-xwiki-preload/vitest.config.ts b/electron/authentication/authentication-xwiki/authentication-xwiki-preload/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/electron/authentication/authentication-xwiki/authentication-xwiki-preload/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/electron/authentication/authentication-xwiki/authentication-xwiki-renderer/package.json b/electron/authentication/authentication-xwiki/authentication-xwiki-renderer/package.json index 0b2fc6d1a..0d47568ff 100644 --- a/electron/authentication/authentication-xwiki/authentication-xwiki-renderer/package.json +++ b/electron/authentication/authentication-xwiki/authentication-xwiki-renderer/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -31,6 +32,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/electron/authentication/authentication-xwiki/authentication-xwiki-renderer/vitest.config.ts b/electron/authentication/authentication-xwiki/authentication-xwiki-renderer/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/electron/authentication/authentication-xwiki/authentication-xwiki-renderer/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/electron/browser/package.json b/electron/browser/package.json index abcc7ed46..9598bb519 100644 --- a/electron/browser/package.json +++ b/electron/browser/package.json @@ -22,7 +22,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build && vite build -c vite.preload.config.ts && vite build -c vite.main.config.ts", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -34,6 +35,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/electron/browser/vitest.config.ts b/electron/browser/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/electron/browser/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/electron/link-suggest/link-suggest-filesystem/package.json b/electron/link-suggest/link-suggest-filesystem/package.json index bb751221f..3ca60ff93 100644 --- a/electron/link-suggest/link-suggest-filesystem/package.json +++ b/electron/link-suggest/link-suggest-filesystem/package.json @@ -20,7 +20,8 @@ "scripts": { "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", - "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0" + "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -34,6 +35,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3" diff --git a/electron/link-suggest/link-suggest-filesystem/vitest.config.ts b/electron/link-suggest/link-suggest-filesystem/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/electron/link-suggest/link-suggest-filesystem/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/electron/storage/package.json b/electron/storage/package.json index 57b50a49b..41af60311 100644 --- a/electron/storage/package.json +++ b/electron/storage/package.json @@ -24,7 +24,8 @@ "clean": "rimraf dist", "compile": "tsc --project tsconfig.json --noEmit && vite build && vite build -c vite.preload.config.ts && vite build -c vite.main.config.ts", "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", - "prepack": "pnpm build" + "prepack": "pnpm build", + "test": "vitest --run" }, "dependencies": { "@xwiki/cristal-api": "workspace:*", @@ -41,6 +42,7 @@ }, "devDependencies": { "@types/node": "22.10.2", + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3", diff --git a/electron/storage/vitest.config.ts b/electron/storage/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/electron/storage/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/extension-manager/package.json b/extension-manager/package.json index 3fe91e854..2c0f47c55 100644 --- a/extension-manager/package.json +++ b/extension-manager/package.json @@ -21,7 +21,8 @@ "build": "tsc --project tsconfig.json && vite build", "clean": "rimraf dist", "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", - "prepack": "pnpm build" + "prepack": "pnpm build", + "test": "vitest --run" }, "types": "dist/index.d.ts", "dependencies": { @@ -30,6 +31,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3" }, diff --git a/extension-manager/vitest.config.ts b/extension-manager/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/extension-manager/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/extensions/menubuttons/package.json b/extensions/menubuttons/package.json index 3e2aee496..928359529 100644 --- a/extensions/menubuttons/package.json +++ b/extensions/menubuttons/package.json @@ -22,7 +22,8 @@ "clean": "rimraf dist", "compile": "vue-tsc --project tsconfig.json && vite build", "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", - "prepack": "pnpm build" + "prepack": "pnpm build", + "test": "vitest --run" }, "types": "dist/index.d.ts", "dependencies": { @@ -33,6 +34,7 @@ "vue": "3.5.13" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3", "vue-tsc": "2.1.10" diff --git a/extensions/menubuttons/vitest.config.ts b/extensions/menubuttons/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/extensions/menubuttons/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/lib/package.json b/lib/package.json index 3153229b0..7d6220384 100644 --- a/lib/package.json +++ b/lib/package.json @@ -22,7 +22,8 @@ "clean": "rimraf dist", "compile": "vue-tsc --project tsconfig.json && vite build", "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", - "prepack": "pnpm build" + "prepack": "pnpm build", + "test": "vitest --run" }, "types": "dist/index.d.ts", "dependencies": { @@ -90,6 +91,7 @@ "vue-router": "4.5.0" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3", "vue-tsc": "2.1.10" diff --git a/lib/vitest.config.ts b/lib/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/lib/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/macros/package.json b/macros/package.json index 4d4adf6e0..a8a8dfd6f 100644 --- a/macros/package.json +++ b/macros/package.json @@ -22,7 +22,8 @@ "clean": "rimraf dist", "compile": "vue-tsc --project tsconfig.json && vite build", "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", - "prepack": "pnpm build" + "prepack": "pnpm build", + "test": "vitest --run" }, "types": "dist/index.d.ts", "dependencies": { @@ -35,6 +36,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3", diff --git a/macros/vitest.config.ts b/macros/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/macros/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 620c561e7..9bb0554f2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -132,6 +132,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -157,6 +160,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -188,6 +194,9 @@ importers: specifier: 10.0.5 version: 10.0.5(vue@3.5.13(typescript@5.6.3)) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -213,6 +222,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -250,6 +262,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -347,6 +362,9 @@ importers: core/authentication/authentication-api: devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -369,6 +387,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -381,6 +402,9 @@ importers: core/authentication/authentication-nextcloud: devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -461,6 +485,9 @@ importers: '@types/js-cookie': specifier: 3.0.6 version: 3.0.6 + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -480,6 +507,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -508,6 +538,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -530,6 +563,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -558,6 +594,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -611,6 +650,9 @@ importers: specifier: workspace:* version: link:../../../api devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -630,6 +672,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -649,6 +694,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -671,6 +719,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -693,6 +744,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -746,6 +800,9 @@ importers: specifier: 10.0.5 version: 10.0.5(vue@3.5.13(typescript@5.6.3)) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -771,6 +828,9 @@ importers: '@types/lodash': specifier: 4.17.13 version: 4.17.13 + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -793,6 +853,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -818,6 +881,9 @@ importers: specifier: 10.0.5 version: 10.0.5(vue@3.5.13(typescript@5.6.3)) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -834,6 +900,9 @@ importers: specifier: workspace:* version: link:../../../api devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -853,6 +922,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -878,6 +950,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -900,6 +975,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -925,6 +1003,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -965,6 +1046,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -984,6 +1068,9 @@ importers: specifier: workspace:* version: link:../../authentication/authentication-api devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -1003,6 +1090,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1028,6 +1118,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1071,6 +1164,9 @@ importers: specifier: 4.5.0 version: 4.5.0(vue@3.5.13(typescript@5.6.3)) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1105,6 +1201,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1146,6 +1245,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -1168,6 +1270,9 @@ importers: '@types/lodash': specifier: 4.17.13 version: 4.17.13 + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1224,6 +1329,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1255,6 +1363,9 @@ importers: '@types/xml-escape': specifier: 1.1.3 version: 1.1.3 + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1286,6 +1397,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1302,6 +1416,9 @@ importers: specifier: workspace:* version: link:../../document/document-api devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -1333,6 +1450,9 @@ importers: '@types/markdown-it': specifier: 14.1.2 version: 14.1.2 + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1345,6 +1465,9 @@ importers: core/model/model-api: devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -1373,6 +1496,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1392,6 +1518,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1417,6 +1546,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1439,6 +1571,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1461,6 +1596,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1523,6 +1661,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1535,6 +1676,9 @@ importers: core/model/model-remote-url/model-remote-url-filesystem/model-remote-url-filesystem-api: devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -1557,6 +1701,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1585,6 +1732,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1610,6 +1760,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1629,6 +1782,9 @@ importers: specifier: workspace:* version: link:../../model/model-api devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -1648,6 +1804,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1679,6 +1838,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1707,6 +1869,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1738,6 +1903,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1772,6 +1940,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1794,6 +1965,9 @@ importers: specifier: 10.0.5 version: 10.0.5(vue@3.5.13(typescript@5.6.3)) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1819,6 +1993,9 @@ importers: '@types/lodash': specifier: 4.17.13 version: 4.17.13 + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1862,6 +2039,9 @@ importers: specifier: 10.0.5 version: 10.0.5(vue@3.5.13(typescript@5.6.3)) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -1935,6 +2115,9 @@ importers: '@types/lodash': specifier: 4.17.13 version: 4.17.13 + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config vue: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) @@ -1957,6 +2140,9 @@ importers: specifier: 0.2.2 version: 0.2.2 devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config vue: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) @@ -1970,6 +2156,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -1992,6 +2181,9 @@ importers: '@types/lodash': specifier: 4.17.13 version: 4.17.13 + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -2014,6 +2206,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -2094,6 +2289,9 @@ importers: ds/api: devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -2415,6 +2613,9 @@ importers: specifier: 10.0.0 version: 10.0.0 devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -2431,6 +2632,9 @@ importers: specifier: 33.2.1 version: 33.2.1 devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -2450,6 +2654,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -2475,6 +2682,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -2506,6 +2716,9 @@ importers: specifier: 6.2.0 version: 6.2.0(reflect-metadata@0.2.2) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -2645,6 +2858,9 @@ importers: '@types/node': specifier: 22.10.2 version: 22.10.2 + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -2670,6 +2886,9 @@ importers: specifier: 0.2.2 version: 0.2.2 devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -2695,6 +2914,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -2894,6 +3116,9 @@ importers: specifier: 4.5.0 version: 4.5.0(vue@3.5.13(typescript@5.6.3)) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -2919,6 +3144,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -2987,6 +3215,9 @@ importers: '@types/dompurify': specifier: 3.2.0 version: 3.2.0 + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -3002,6 +3233,9 @@ importers: rendering/wikimodel: devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -3021,6 +3255,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -3079,6 +3316,9 @@ importers: specifier: 4.5.0 version: 4.5.0(vue@3.5.13(typescript@5.6.3)) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../dev/config typescript: specifier: 5.6.3 version: 5.6.3 @@ -3317,6 +3557,9 @@ importers: specifier: 3.5.13 version: 3.5.13(typescript@5.6.3) devDependencies: + '@xwiki/cristal-dev-config': + specifier: workspace:* + version: link:../../dev/config reflect-metadata: specifier: 0.2.2 version: 0.2.2 diff --git a/rendering/rendering/package.json b/rendering/rendering/package.json index 122ffc09a..c3ba68537 100644 --- a/rendering/rendering/package.json +++ b/rendering/rendering/package.json @@ -22,7 +22,8 @@ "clean": "rimraf dist", "compile": "vue-tsc --project tsconfig.json && vite build", "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", - "prepack": "pnpm build" + "prepack": "pnpm build", + "test": "vitest --run" }, "types": "dist/index.d.ts", "dependencies": { @@ -38,6 +39,7 @@ }, "devDependencies": { "@types/dompurify": "3.2.0", + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3", diff --git a/rendering/rendering/vitest.config.ts b/rendering/rendering/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/rendering/rendering/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/rendering/wikimodel/package.json b/rendering/wikimodel/package.json index cf61dbfeb..ce85ee973 100644 --- a/rendering/wikimodel/package.json +++ b/rendering/wikimodel/package.json @@ -22,10 +22,12 @@ "clean": "rimraf dist", "compile": "vue-tsc --project tsconfig.json && vite build", "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", - "prepack": "pnpm build" + "prepack": "pnpm build", + "test": "vitest --run" }, "types": "dist/index.d.ts", "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3", "vue-tsc": "2.1.10" diff --git a/rendering/wikimodel/vitest.config.ts b/rendering/wikimodel/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/rendering/wikimodel/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/sharedworker/api/package.json b/sharedworker/api/package.json index 6660cc665..2a59b76aa 100644 --- a/sharedworker/api/package.json +++ b/sharedworker/api/package.json @@ -22,7 +22,8 @@ "clean": "rimraf dist", "compile": "vue-tsc --project tsconfig.json && vite build", "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", - "prepack": "pnpm build" + "prepack": "pnpm build", + "test": "vitest --run" }, "types": "dist/index.d.ts", "dependencies": { @@ -30,6 +31,7 @@ "vue": "3.5.13" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3", "vite-plugin-comlink": "5.1.0", diff --git a/sharedworker/api/vitest.config.ts b/sharedworker/api/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/sharedworker/api/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/sharedworker/impl/package.json b/sharedworker/impl/package.json index 02a2cbf8c..ef23abf61 100644 --- a/sharedworker/impl/package.json +++ b/sharedworker/impl/package.json @@ -22,7 +22,8 @@ "clean": "rimraf dist", "compile": "vue-tsc --project tsconfig.json && vite build", "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", - "prepack": "pnpm build" + "prepack": "pnpm build", + "test": "vitest --run" }, "types": "dist/index.d.ts", "dependencies": { @@ -42,6 +43,7 @@ "vue-router": "4.5.0" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "typescript": "5.6.3", "vite": "6.0.3", "vite-plugin-comlink": "5.1.0", diff --git a/sharedworker/impl/vitest.config.ts b/sharedworker/impl/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/sharedworker/impl/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig); diff --git a/xwiki/remoteinlineeditor/package.json b/xwiki/remoteinlineeditor/package.json index fae0cc059..ccbedfbd2 100644 --- a/xwiki/remoteinlineeditor/package.json +++ b/xwiki/remoteinlineeditor/package.json @@ -22,7 +22,8 @@ "clean": "rimraf dist", "compile": "vue-tsc --project tsconfig.json && vite build", "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0", - "prepack": "pnpm build" + "prepack": "pnpm build", + "test": "vitest --run" }, "types": "dist/index.d.ts", "dependencies": { @@ -35,6 +36,7 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { + "@xwiki/cristal-dev-config": "workspace:*", "reflect-metadata": "0.2.2", "typescript": "5.6.3", "vite": "6.0.3", diff --git a/xwiki/remoteinlineeditor/vitest.config.ts b/xwiki/remoteinlineeditor/vitest.config.ts new file mode 100644 index 000000000..89b9fa78c --- /dev/null +++ b/xwiki/remoteinlineeditor/vitest.config.ts @@ -0,0 +1,25 @@ +/* + * See the LICENSE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +import localConfig from "./vite.config"; +import { mergeConfig } from "vitest/config"; +import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config"; + +export default mergeConfig(defaultConfig, localConfig);