@pplancq/react-template 2.8.3 → 2.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## @pplancq/react-template [2.8.5](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@2.8.4...@pplancq/react-template@2.8.5) (2026-02-24)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **deps:** update commitlint monorepo to ^20.4.2 ([#1571](https://github.com/pplancq/dev-tools/issues/1571)) ([ab3f6a4](https://github.com/pplancq/dev-tools/commit/ab3f6a4e36f6007fd79071268aefa3a01210f512))
6
+ * **deps:** update dependency @msw/playwright to ^0.6.4 ([#1567](https://github.com/pplancq/dev-tools/issues/1567)) ([eb4525e](https://github.com/pplancq/dev-tools/commit/eb4525e726ea4dc886151959fc6765f220e64db1))
7
+ * **deps:** update dependency jsdom to ^28.1.0 ([#1573](https://github.com/pplancq/dev-tools/issues/1573)) ([313c332](https://github.com/pplancq/dev-tools/commit/313c332b7f8a94629a0d4f1db617690fc5590919))
8
+ * **deps:** update dependency nodemon to ^3.1.13 ([#1569](https://github.com/pplancq/dev-tools/issues/1569)) ([d56a6ee](https://github.com/pplancq/dev-tools/commit/d56a6eef413d11110f5b74c31833c94ae7ec2dea))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * **@pplancq/commitlint-config:** upgraded to 3.0.3
14
+ * **@pplancq/eslint-config:** upgraded to 6.0.4
15
+
16
+ ## @pplancq/react-template [2.8.4](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@2.8.3...@pplancq/react-template@2.8.4) (2026-02-16)
17
+
18
+ ### Bug Fixes
19
+
20
+ * **deps:** update dependency @msw/playwright to ^0.6.2 ([#1560](https://github.com/pplancq/dev-tools/issues/1560)) ([5628a4a](https://github.com/pplancq/dev-tools/commit/5628a4a9bd48426e215c0359759592ecc6bb96e4))
21
+ * **deps:** update dependency @tanstack/react-query to ^5.90.21 ([#1558](https://github.com/pplancq/dev-tools/issues/1558)) ([267e328](https://github.com/pplancq/dev-tools/commit/267e328dbdda183b34fa240ecff7cbc6edf5827d))
22
+
23
+
24
+ ### Dependencies
25
+
26
+ * **@pplancq/eslint-config:** upgraded to 6.0.3
27
+
1
28
  ## @pplancq/react-template [2.8.3](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@2.8.2...@pplancq/react-template@2.8.3) (2026-02-09)
2
29
 
3
30
  ### Bug Fixes
package/mise.toml CHANGED
@@ -1,3 +1,3 @@
1
1
  [tools]
2
- node = "24.13.0"
3
- npm = "11.9.0"
2
+ node = "24.13.1"
3
+ npm = "11.10.1"
@@ -0,0 +1,25 @@
1
+ export const users = [
2
+ {
3
+ id: 1,
4
+ name: 'Demo user',
5
+ username: '@demoUser',
6
+ email: 'demo@user.test',
7
+ address: {
8
+ street: 'Kulas Light',
9
+ suite: 'Apt. 556',
10
+ city: 'Gwenborough',
11
+ zipcode: '92998-3874',
12
+ geo: {
13
+ lat: '-37.3159',
14
+ lng: '81.1496',
15
+ },
16
+ },
17
+ phone: '1-770-736-8031 x56442',
18
+ website: 'hildegard.org',
19
+ company: {
20
+ name: 'Romaguera-Crona',
21
+ catchPhrase: 'Multi-layered client-server neural-net',
22
+ bs: 'harness real-time e-markets',
23
+ },
24
+ },
25
+ ];
@@ -0,0 +1,6 @@
1
+ import { users } from '@Mocks/fixtures/user';
2
+ import { http, HttpResponse } from 'msw';
3
+
4
+ export const getUsers200 = http.get('*/users', () => {
5
+ return HttpResponse.json(users);
6
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pplancq/react-template",
3
- "version": "2.8.3",
3
+ "version": "2.8.5",
4
4
  "license": "MIT",
5
5
  "description": "react template",
6
6
  "author": "pplancq <paul.plancq@outlook.fr>",
@@ -13,7 +13,7 @@
13
13
  "bin": {
14
14
  "template-install": "bin/template-install.js"
15
15
  },
16
- "packageManager": "npm@11.9.0",
16
+ "packageManager": "npm@11.10.1",
17
17
  "scripts": {
18
18
  "start": "rsbuild dev",
19
19
  "start:mock": "rsbuild dev --env-mode mock",
@@ -50,7 +50,7 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "@hookform/resolvers": "^5.2.2",
53
- "@tanstack/react-query": "^5.90.20",
53
+ "@tanstack/react-query": "^5.90.21",
54
54
  "@tanstack/react-query-devtools": "^5.91.3",
55
55
  "react": "^19.2.4",
56
56
  "react-dom": "^19.2.4",
@@ -60,9 +60,9 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@bdellegrazie/playwright-sonar-reporter": "^0.4.0",
63
- "@commitlint/cli": "^20.4.1",
64
- "@msw/playwright": "^0.4.5",
65
- "@playwright/test": "^1.58.1",
63
+ "@commitlint/cli": "^20.4.2",
64
+ "@msw/playwright": "^0.6.4",
65
+ "@playwright/test": "^1.58.2",
66
66
  "@pplancq/commitlint-config": "*",
67
67
  "@pplancq/eslint-config": "*",
68
68
  "@pplancq/postcss-config": "*",
@@ -75,27 +75,27 @@
75
75
  "@testing-library/jest-dom": "^6.9.1",
76
76
  "@testing-library/react": "^16.3.2",
77
77
  "@testing-library/user-event": "^14.6.1",
78
- "@types/react": "^19.2.13",
78
+ "@types/react": "^19.2.14",
79
79
  "@types/react-dom": "^19.2.3",
80
80
  "@vitejs/plugin-react-swc": "^4.2.3",
81
81
  "@vitest/coverage-v8": "^4.0.18",
82
82
  "concurrently": "^9.2.1",
83
- "eslint": "^9.39.2",
83
+ "eslint": "^9.39.3",
84
84
  "eslint-plugin-prettier": "^5.5.5",
85
85
  "husky": "^9.1.7",
86
- "jsdom": "^28.0.0",
86
+ "jsdom": "^28.1.0",
87
87
  "lint-staged": "^16.2.7",
88
88
  "monocart-coverage-reports": "^2.12.9",
89
- "msw": "^2.12.8",
90
- "nodemon": "^3.1.11",
89
+ "msw": "^2.12.10",
90
+ "nodemon": "^3.1.13",
91
91
  "prettier": "^3.8.1",
92
92
  "rsbuild-plugin-stylelint": "^1.1.0",
93
- "stylelint": "^17.1.1",
93
+ "stylelint": "^17.3.0",
94
94
  "stylelint-prettier": "^5.0.3",
95
95
  "tsc-files": "^1.1.4",
96
96
  "typescript": "^5.9.3",
97
97
  "vite-plugin-svgr": "^4.5.0",
98
- "vite-tsconfig-paths": "^6.0.5",
98
+ "vite-tsconfig-paths": "^6.1.1",
99
99
  "vitest": "^4.0.18",
100
100
  "vitest-axe": "^1.0.0-pre.5",
101
101
  "vitest-sonar-reporter": "^3.0.0"
@@ -40,7 +40,7 @@ export default defineConfig({
40
40
  },
41
41
  ],
42
42
  webServer: {
43
- command: 'npm run start',
43
+ command: 'npm run build -- --env-mode test && npm run preview',
44
44
  url: appUrl,
45
45
  stdout: 'pipe',
46
46
  reuseExistingServer: !process.env.CI,
@@ -1,4 +1,5 @@
1
1
  import { expect } from '@playwright/test';
2
+ import { getUsers200 } from '../mocks/handlers/userHandlers';
2
3
  import { describe, it } from './fixture/playwright.fixture';
3
4
 
4
5
  describe('Demo Test', () => {
@@ -7,4 +8,10 @@ describe('Demo Test', () => {
7
8
  const title = page.getByText('WELCOME TO YOUR REACT STARTER KIT');
8
9
  await expect(title).toBeVisible();
9
10
  });
11
+
12
+ it('should data fetching', async ({ page, network }) => {
13
+ network.use(getUsers200);
14
+ await page.goto('/reactQueryDemo');
15
+ await expect(page.getByText('Demo user')).toBeVisible();
16
+ });
10
17
  });
@@ -1,12 +1,13 @@
1
- import { createNetworkFixture, type NetworkFixture } from '@msw/playwright';
1
+ import type { NetworkFixture } from '@msw/playwright';
2
2
  import { test as base } from '@playwright/test';
3
+ import { createNetworkFixture } from '../utils/createNetworkFixture';
3
4
  import { createTestWithCoverageFixture } from '../utils/createTestWithCoverageFixture';
4
5
 
5
6
  export const test = base.extend<{
6
7
  testWithCoverage: string;
7
8
  network: NetworkFixture;
8
9
  }>({
9
- testWithCoverage: createTestWithCoverageFixture,
10
+ testWithCoverage: createTestWithCoverageFixture(),
10
11
  network: createNetworkFixture(),
11
12
  });
12
13
 
@@ -0,0 +1,18 @@
1
+ import { defineNetworkFixture, type NetworkFixture } from '@msw/playwright';
2
+ import type { PlaywrightTestArgs, PlaywrightWorkerArgs, TestFixture } from '@playwright/test';
3
+
4
+ export const createNetworkFixture = (): [
5
+ TestFixture<NetworkFixture, PlaywrightTestArgs & PlaywrightWorkerArgs>,
6
+ { auto: true },
7
+ ] => [
8
+ async ({ context }, use) => {
9
+ const network = defineNetworkFixture({
10
+ context,
11
+ });
12
+
13
+ await network.enable();
14
+ await use(network);
15
+ await network.disable();
16
+ },
17
+ { auto: true },
18
+ ];