Skip to content

Commit 68a50f2

Browse files
committed
Configure separate build for e2e tests to avoid hot reload and WebApp build issues when modifying
1 parent c516977 commit 68a50f2

File tree

6 files changed

+44
-2
lines changed

6 files changed

+44
-2
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"display": "Account Management E2E Tests",
4+
"extends": "@repo/config/typescript/react-app.json",
5+
"compilerOptions": {
6+
"types": ["node", "@playwright/test"],
7+
"paths": {
8+
"@/*": ["../*"]
9+
}
10+
},
11+
"include": ["./**/*.ts", "./**/*.tsx"],
12+
"exclude": ["node_modules"]
13+
}

application/account-management/WebApp/rsbuild.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ import { pluginTypeCheck } from "@rsbuild/plugin-type-check";
1111
const customBuildEnv: CustomBuildEnv = {};
1212

1313
export default defineConfig({
14+
tools: {
15+
rspack: {
16+
// Exclude e2e-tests directory from file watching to prevent hot reloading issues
17+
watchOptions: {
18+
ignored: ["**/e2e-tests/**", "**/playwright-report/**"]
19+
}
20+
}
21+
},
1422
plugins: [
1523
pluginReact(),
1624
pluginTypeCheck(),

application/account-management/WebApp/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"@/*": ["./*"]
88
}
99
},
10-
"exclude": ["node_modules", "dist"]
10+
"exclude": ["node_modules", "dist", "e2e-tests/**"]
1111
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"display": "Back Office E2E Tests",
4+
"extends": "@repo/config/typescript/react-app.json",
5+
"compilerOptions": {
6+
"types": ["node", "@playwright/test"],
7+
"paths": {
8+
"@/*": ["../*"]
9+
}
10+
},
11+
"include": ["./**/*.ts", "./**/*.tsx"],
12+
"exclude": ["node_modules"]
13+
}

application/back-office/WebApp/rsbuild.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ import { pluginTypeCheck } from "@rsbuild/plugin-type-check";
1111
const customBuildEnv: CustomBuildEnv = {};
1212

1313
export default defineConfig({
14+
tools: {
15+
rspack: {
16+
// Exclude e2e-tests directory from file watching to prevent hot reloading issues
17+
watchOptions: {
18+
ignored: ["**/e2e-tests/**", "**/playwright-report/**"]
19+
}
20+
}
21+
},
1422
plugins: [
1523
pluginReact(),
1624
pluginTypeCheck(),

application/back-office/WebApp/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"@/*": ["./*"]
88
}
99
},
10-
"exclude": ["node_modules", "dist"]
10+
"exclude": ["node_modules", "dist", "e2e-tests/**"]
1111
}

0 commit comments

Comments
 (0)