mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-04 17:41:23 +01:00
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
* feat: add string utility tests and vitest browser configuration * feat: add Playwright for end-to-end testing and update snapshots - Introduced Playwright for E2E testing with a new configuration file. - Added test scripts to package.json for running E2E tests. - Updated package-lock.json and package.json with new dependencies for Playwright and types. - Created new SVG snapshot files for various layers (ruler, scaleBar, temperature, terrain, vignette, zones) to support visual testing. - Excluded e2e directory from TypeScript compilation. * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Add SVG layer snapshots for various components - Added ruler layer snapshot with hidden display. - Added scale bar layer snapshot with detailed structure and styling. - Added temperature layer snapshot with opacity and stroke settings. - Added terrain layer snapshot with ocean and land heights groups. - Added vignette layer snapshot with mask and opacity settings. - Added zones layer snapshot with specified opacity and stroke settings. * fix: update Playwright browser installation command to use npx * Update snapshots * refactor: remove unused layer tests and their corresponding snapshots as fonts are unpredictable --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
46 lines
1.3 KiB
JSON
46 lines
1.3 KiB
JSON
{
|
|
"name": "fantasy-map-generator",
|
|
"version": "1.110.0",
|
|
"description": "Azgaar's _Fantasy Map Generator_ is a free web application that helps fantasy writers, game masters, and cartographers create and edit fantasy maps.",
|
|
"homepage": "https://github.com/Azgaar/Fantasy-Map-Generator#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/Azgaar/Fantasy-Map-Generator/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/Azgaar/Fantasy-Map-Generator.git"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Azgaar",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest",
|
|
"test:browser": "vitest --config=vitest.browser.config.ts",
|
|
"test:e2e": "playwright test"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.57.0",
|
|
"@types/d3": "^7.4.3",
|
|
"@types/delaunator": "^5.0.3",
|
|
"@types/node": "^25.0.10",
|
|
"@types/polylabel": "^1.1.3",
|
|
"@vitest/browser": "^4.0.18",
|
|
"@vitest/browser-playwright": "^4.0.18",
|
|
"playwright": "^1.57.0",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.3.1",
|
|
"vitest": "^4.0.18"
|
|
},
|
|
"dependencies": {
|
|
"alea": "^1.0.1",
|
|
"d3": "^7.9.0",
|
|
"delaunator": "^5.0.1",
|
|
"polylabel": "^2.0.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=24.0.0"
|
|
}
|
|
}
|