@geogirafe/lib-geoportal 1.2.0-dev.2675426009 → 1.2.0-dev.2675963665
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/README.md +36 -0
- package/package.json +10 -1
- package/templates/public/about.json +1 -1
package/README.md
CHANGED
|
@@ -163,6 +163,42 @@ This will automatically copy the `config.json` file in the right place, and down
|
|
|
163
163
|
> Please note that today, the GeoGirafe Viewer is using a backend based on GeoMapFish.
|
|
164
164
|
> The services you will have to use in your configuration must therefore be compliant with GeoMapFish.
|
|
165
165
|
|
|
166
|
+
## Testing
|
|
167
|
+
|
|
168
|
+
There are 2 kinds of tests in the GeoGirafe project:
|
|
169
|
+
|
|
170
|
+
### unitests (with vitest)
|
|
171
|
+
|
|
172
|
+
To run the unitests, execute the following command:
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
npm run test
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
And that's it.
|
|
179
|
+
|
|
180
|
+
### End-to-end tests (with playwright)
|
|
181
|
+
|
|
182
|
+
To be able to run the playwright tests, first install the headless chrome and firefox binaries:
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
npx playwright install
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Then you must start the application:
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
npm start
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
And then in another console you can run the tests:
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
npx playwright test
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
The result page will omen at the end of the tests.
|
|
201
|
+
|
|
166
202
|
## Build for Production
|
|
167
203
|
|
|
168
204
|
```bash
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "GeoGirafe PSC",
|
|
6
6
|
"url": "https://doc.geogirafe.org"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.2.0-dev.
|
|
8
|
+
"version": "1.2.0-dev.2675963665",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=20.19.0"
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"@eslint/js": "10.0.1",
|
|
67
67
|
"@geoblocks/mapfishprint": "0.3.0",
|
|
68
68
|
"@geoblocks/print": "0.7.9",
|
|
69
|
+
"@playwright/test": "1.61.0",
|
|
69
70
|
"@types/babel__generator": "7.27.0",
|
|
70
71
|
"@types/d3": "7.4.3",
|
|
71
72
|
"@types/file-saver": "2.0.7",
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
"lint-staged": "16.4.0",
|
|
93
94
|
"magic-string": "0.30.21",
|
|
94
95
|
"minify": "14.1.0",
|
|
96
|
+
"odiff-bin": "4.3.8",
|
|
95
97
|
"ol": "10.8.0",
|
|
96
98
|
"ol-ext": "4.0.38",
|
|
97
99
|
"ol-mapbox-style": "13.4.0",
|
|
@@ -176,5 +178,12 @@
|
|
|
176
178
|
"trust-default-dev-certs-win": "buildtools\\trust-dev-certs.cmd",
|
|
177
179
|
"size-analysis": "node buildtools/app-clean.js && cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode analyze",
|
|
178
180
|
"create-component": "tsx buildtools/create-component.ts"
|
|
181
|
+
},
|
|
182
|
+
"allowScripts": {
|
|
183
|
+
"@swc/core@1.15.24": true,
|
|
184
|
+
"esbuild@0.28.1": true,
|
|
185
|
+
"esbuild@0.25.12": true,
|
|
186
|
+
"odiff-bin@4.3.8": true,
|
|
187
|
+
"protobufjs@8.0.1": true
|
|
179
188
|
}
|
|
180
189
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.2.0-dev.
|
|
1
|
+
{"version":"1.2.0-dev.2675963665", "build":"2675963665", "date":"14/07/2026"}
|