mirror of
https://github.com/AppFlowy-IO/AppFlowy-Web.git
synced 2025-11-29 02:38:00 +08:00
chre: enable all tests
This commit is contained in:
2
.github/workflows/integration-test.yml
vendored
2
.github/workflows/integration-test.yml
vendored
@@ -149,7 +149,7 @@ jobs:
|
|||||||
curl -v http://localhost/health || true
|
curl -v http://localhost/health || true
|
||||||
curl -v http://localhost/api/health || true
|
curl -v http://localhost/api/health || true
|
||||||
echo "Running Cypress tests..."
|
echo "Running Cypress tests..."
|
||||||
pnpm cypress run --spec 'cypress/e2e/page/create-delete-page.cy.ts'
|
pnpm cypress run --spec 'cypress/e2e/**/*.cy.ts'
|
||||||
|
|
||||||
- name: Cloud server logs
|
- name: Cloud server logs
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
@@ -41,9 +41,9 @@ export default defineConfig({
|
|||||||
console.log(message);
|
console.log(message);
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
async httpCheck({ url, method = 'HEAD' }: { url: string; method?: string }) {
|
async httpCheck({ url, method = 'HEAD' }) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(url, { method: method as 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'PATCH' });
|
const response = await fetch(url, { method });
|
||||||
|
|
||||||
return response.ok;
|
return response.ok;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ export default defineConfig({
|
|||||||
build: {
|
build: {
|
||||||
target: `esnext`,
|
target: `esnext`,
|
||||||
reportCompressedSize: true,
|
reportCompressedSize: true,
|
||||||
|
chunkSizeWarningLimit: 600,
|
||||||
rollupOptions: isProd
|
rollupOptions: isProd
|
||||||
? {
|
? {
|
||||||
output: {
|
output: {
|
||||||
@@ -127,24 +128,64 @@ export default defineConfig({
|
|||||||
entryFileNames: 'static/js/[name]-[hash].js',
|
entryFileNames: 'static/js/[name]-[hash].js',
|
||||||
assetFileNames: 'static/[ext]/[name]-[hash].[ext]',
|
assetFileNames: 'static/[ext]/[name]-[hash].[ext]',
|
||||||
manualChunks(id) {
|
manualChunks(id) {
|
||||||
|
if (id.includes('node_modules')) {
|
||||||
if (
|
if (
|
||||||
// id.includes('/react@') ||
|
|
||||||
// id.includes('/react-dom@') ||
|
|
||||||
id.includes('/react-is@') ||
|
id.includes('/react-is@') ||
|
||||||
|
id.includes('/react-custom-scrollbars') ||
|
||||||
|
id.includes('/react-virtualized-auto-sizer') ||
|
||||||
|
id.includes('/react-window')
|
||||||
|
) {
|
||||||
|
return 'react-vendor';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
id.includes('/yjs@') ||
|
id.includes('/yjs@') ||
|
||||||
id.includes('/y-indexeddb@') ||
|
id.includes('/y-indexeddb@') ||
|
||||||
id.includes('/dexie') ||
|
|
||||||
id.includes('/redux') ||
|
|
||||||
id.includes('/react-custom-scrollbars') ||
|
|
||||||
id.includes('/dayjs') ||
|
|
||||||
id.includes('/smooth-scroll-into-view-if-needed') ||
|
|
||||||
id.includes('/react-virtualized-auto-sizer') ||
|
|
||||||
id.includes('/react-window') ||
|
|
||||||
id.includes('/@popperjs') ||
|
|
||||||
id.includes('/@mui/material/Dialog') ||
|
|
||||||
id.includes('/quill-delta')
|
id.includes('/quill-delta')
|
||||||
) {
|
) {
|
||||||
return 'common';
|
return 'editor-vendor';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
id.includes('/dexie') ||
|
||||||
|
id.includes('/redux') ||
|
||||||
|
id.includes('/@reduxjs')
|
||||||
|
) {
|
||||||
|
return 'data-vendor';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
id.includes('/@mui') ||
|
||||||
|
id.includes('/@emotion') ||
|
||||||
|
id.includes('/@popperjs')
|
||||||
|
) {
|
||||||
|
return 'mui-vendor';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
id.includes('/dayjs') ||
|
||||||
|
id.includes('/smooth-scroll-into-view-if-needed') ||
|
||||||
|
id.includes('/lodash') ||
|
||||||
|
id.includes('/uuid')
|
||||||
|
) {
|
||||||
|
return 'utils-vendor';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (id.includes('/@appflowyinc/editor')) {
|
||||||
|
return 'appflowy-editor';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (id.includes('/@appflowyinc/ai-chat')) {
|
||||||
|
return 'appflowy-ai';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (id.includes('/react-colorful')) {
|
||||||
|
return 'color-vendor';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (id.includes('/react-katex') || id.includes('/katex')) {
|
||||||
|
return 'katex-vendor';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user